Overview
Transactions in Agentic Wallet follow a complete lifecycle from creation through confirmation. All transactions are created via intents - high-level instructions that the platform translates into protocol-specific on-chain operations.Transaction Lifecycle
Every transaction moves through these states:1
pending
Transaction created and queued for processing
2
simulating
Transaction simulated on-chain to estimate costs and catch errors
3
policy_eval
Policy engine evaluates rules (spending limits, allowlists, etc.)
4
approval_gate
Transaction paused for manual approval (if required by policy)
5
signing
Wallet engine signs the transaction
6
submitting
Transaction submitted to Solana network
7
confirmed | failed
Final state after on-chain confirmation or failure
Creating Transactions
Basic Transfer (SOL)
- CLI
- API
- SDK
SPL Token Transfer
Token Swap
Intent Structure
All transactions require these fields:Supported Transaction Types
Transfers & Payments
Transfers & Payments
transfer_sol- Transfer native SOLtransfer_spl- Transfer SPL tokensx402_pay- HTTP 402 payment flow
DeFi Operations
DeFi Operations
swap- Token swaps (Jupiter, Orca, Raydium)stake- Stake SOL (Marinade)unstake- Unstake SOLlend_supply- Supply assets to lending (Solend)lend_borrow- Borrow assets from lending
Token Operations
Token Operations
create_mint- Create new SPL token mintmint_token- Mint tokens to address
Escrow Operations
Escrow Operations
create_escrow- Create new escrowaccept_escrow- Accept escrow as counterpartyrelease_escrow- Release funds to recipientrefund_escrow- Refund to creatordispute_escrow- Initiate disputeresolve_dispute- Resolve disputecreate_milestone_escrow- Multi-milestone escrowrelease_milestone- Release specific milestone
Query Operations (Read-only)
Query Operations (Read-only)
query_balance- Check wallet balancequery_positions- Get DeFi positions
Advanced
Advanced
flash_loan_bundle- Flash loan operationscpi_call- Cross-program invocationcustom_instruction_bundle- Custom instruction settreasury_allocate- Treasury allocationtreasury_rebalance- Treasury rebalancingpaper_trade- Paper trading (simulation)
Polling for Confirmation
Transactions are processed asynchronously. Poll the transaction status:Idempotency Keys
Prevent duplicate transaction execution with idempotency keys:If you submit the same
idempotencyKey again, the API returns the original transaction instead of creating a duplicate.Approval Gate Workflow
If a policy requires approval, the transaction pauses atapproval_gate:
1
Transaction Paused
Transaction reaches
approval_gate status and waits for operator action.2
Review Transaction
Retrieve pending approvals:
3
Approve or Reject
4
Transaction Continues
After approval, transaction proceeds to
signing → submitting → confirmed.Transaction Proofs
Every transaction generates cryptographic proof artifacts:Replay Data
Get full execution replay for auditing:Gasless Transactions
Enable gasless execution for supported protocols:Real Examples from Source
From scripts/devnet-smoke.ts
Next Steps
Setting Policies
Add spending limits and security rules to your transactions
Protocol Interactions
Execute DeFi operations across Jupiter, Marinade, Solend, and more