cURL
curl --request POST \ --url https://grid.squads.xyz/api/grid/v1/accounts/{address}/transactions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-grid-environment: <x-grid-environment>' \ --data ' { "transaction": "<string>", "fee_config": "<unknown>", "payer_address": "<string>", "transaction_signers": [ "<string>" ] } '
{ "data": { "transaction": "<string>", "fee": "<unknown>", "kms_payloads": [ { "address": "<string>", "payload": "<string>", "provider": "privy" } ], "simulation_logs": [ "<string>" ], "transaction_signers": [ "<string>" ] }, "metadata": { "request_id": "<string>", "timestamp": "2023-11-07T05:31:56Z" } }
Prepare a custom transaction with specified instructions
Your Grid API key from the Grid Dashboard
Solana network environment (sandbox, devnet, mainnet)
Smart account address (Solana public key)
Include simulation logs in response
Show child attributes
Transaction prepared successfully
Was this page helpful?