Create a payment intent
Payment Intents
Create Payment Intent
Create a payment intent for various transfer types
POST
Create a payment intent
Fee Config Breaking Change
Migration
Addfee_config to your create_payment_intent request body:
Fee configuration specifying who pays the transaction fee and in which currency.
How Fees Work
- You submit a payment intent with
fee_config. - The API builds the transaction and calculates the fee (compute, signatures, and ATA rent if needed).
- A repayment instruction is appended that transfers the fee from
payer_addressto the paymaster. - The response includes a
feeobject with the exact amount charged.
Fee Payer Signing
Thepayer_address must sign the transaction. The API automatically adds it as a required signer.
- SOL fees: The payer needs enough SOL to cover the fee.
- USDC fees: The payer needs enough USDC in their associated token account.
Response
Whenfee_config is provided, the response includes a fee field:
Breakdown of the transaction fee charged.
Errors
missing_fee_config — Request has no fee_config (required for non-enterprise tier).Authorizations
Your Grid API key from the Grid Dashboard
Path Parameters
Smart account address
Body
application/json
Response
Payment intent created successfully