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.
This is step 2 of the email-based Grid Account creation flow. You must have
called the Create
Account endpoint to
initiate account creation before calling this endpoint.
OTP Limits
- Attempts: Maximum 3 verification attempts per OTP
- Expiration: 15-minute window from account creation
- Retry: Must initiate new account creation if limits exceeded
Required Configuration
When using Privy as the authentication provider (default), you must include a kms_provider_config with your HPKE public key to receive encrypted authorization keys. This enables secure transaction signing for your Grid Account.Complete Implementation Guide
For comprehensive implementation details including:- kms_provider_config creation
- HPKE keypair generation with P-256 curve and DER formatting
- Authorization key decryption using ECDH + HKDF + ChaCha20-Poly1305
- Transaction payload signing with JSON canonicalization
- Error handling and security best practices
- Language-agnostic examples
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