- Email-based accounts
- Signer-based accounts
Using the Grid API directly requires advanced configurations. Grid SDK is
the recommended way to create accounts. It handles account creation, key
management, authentication, automatic failover, and transaction signing. Learn
more about the Grid SDK in the Grid SDK
guide.
Implementation Guide
Email-based Accounts Creation Flow
1
Initiate account creation
Use this endpoint to create the account specifying the email address of the
user.
2
Verify your user's email to complete account creation
Call the Verify Account
OTP endpoint to
complete the account creation process.
Grid accounts do not have the same address in sandbox and production. DO NOT send funds to the same address in both environments. Create unique accounts for each environment and ensure you use the correct address for your environment.
Signer-based Accounts Creation Flow
1
Create Account
Specify your own ed25519 public keys and the threshold for the account. Signer based accounts are imediately created and return the account address in the response.
Grid accounts do not have the same address in sandbox and production. DO NOT send funds to the same address in both environments. Create unique accounts for each environment and ensure you use the correct address for your environment.
Authorizations
API key authentication with Bearer token. Include the API key in the Authorization header as 'Bearer YOUR_API_KEY'
Environment identifier for the Grid API. Use 'sandbox' for testing on devnet or 'production' for production on mainnet.
Headers
Unique key to ensure idempotent operations
Body
application/json
Account creation type:
- email: Use when you want Grid to automatically generate ed25519 keypairs based on your email address. Perfect for simple integrations where you don't need to manage your own keys.
- signers: Use when you want to provide your own ed25519 public keys and manage your own signing infrastructure. Ideal for advanced users who need full control over their cryptographic keys.
Available options:
email
, signers
Email address for the account. Required when type is "email". Grid will generate ed25519 keypairs automatically.
Optional memo for the account
Maximum length:
256