Polygon
Create and manage cryptocurrency wallets on the Polygon network using the Bloque SDK.
Overview
Polygon accounts are cryptocurrency wallets on the Polygon (MATIC) network. They're ideal for:
- Web3 Transactions: Interaction with smart contracts and dApps
- Low Friction: Minimal transaction fees compared to Ethereum
- Automatic Creation: Instant wallet generation without additional input
- Scalability: High transaction speed and low cost
Creating a Polygon Account
Basic Creation
Create a Polygon wallet without providing additional data:
Parameters
Polygon accounts don't require any input data. The wallet address and keys are automatically generated securely.
Response
Managing Polygon Accounts
Update Metadata
Update custom metadata on a Polygon account:
The source field is reserved and cannot be modified through metadata updates.
All metadata values must be strings.
Account States
Manage Polygon account states:
Available States
Use Cases
dApp Integration
Managing Multiple Wallets
Error Handling
Handle errors appropriately when working with Polygon accounts:
Best Practices
- Descriptive Metadata: Add metadata to identify the purpose of each wallet
- Security Management: Use account states (frozen, disabled) to control access
- Webhooks: Configure webhooks to receive blockchain event notifications
- Error Handling: Always wrap operations in try-catch blocks
- Purpose Isolation: Create separate wallets for different functions (treasury, rewards, etc.)
- Monitoring: Log wallet URNs and addresses for audit and tracking
- State Verification: Check account state before performing critical operations
Differences from Other Account Types
Security Considerations
The private keys of Polygon wallets are securely managed by the Bloque platform. Never share the account URN or API credentials with unauthorized third parties.
Recommendations
- Access Control: Limit who can create and manage Polygon accounts
- Audit: Log all account creation and modification operations
- Monitoring: Set up alerts for unusual activities
- Preventive Freezing: Freeze suspicious accounts immediately
- API Key Rotation: Regularly rotate API keys
Next Steps
- Transfers - Transfer funds between accounts
- Virtual Accounts - Create test accounts
- Virtual Cards - Create payment cards