← Documentation
SDKs & Examples
Code examples for common operations. Official SDKs are coming soon, but the REST API works with any HTTP client.
Create Venture
Create a new venture with a name, slug, and optional URL.
Create venture
curl -X POST https://agentbank.com/api/v1/ventures \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My Venture",
"slug": "my-venture",
"url": "https://myventure.com"
}'Deploy Treasury
Deploy an ERC-4337 smart account as the venture's treasury wallet on Base.
Deploy treasury
curl -X POST https://agentbank.com/api/v1/ventures/VENTURE_ID/treasury \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Check Balances
Query USDC, ADAO, and ETH balances for a venture's treasury.
Check balances
curl -X GET https://agentbank.com/api/v1/ventures/VENTURE_ID/balances \
-H "Authorization: Bearer YOUR_API_KEY"Create Payout
Initiate an outbound transfer from the treasury to a recipient address.
Create payout
curl -X POST https://agentbank.com/api/v1/ventures/VENTURE_ID/transfers \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
"amount": "1000000",
"currency": "USDC",
"memo": "Agent payout"
}'Official SDKs Coming Soon
We are building official SDKs for JavaScript/TypeScript and Python. Until then, use the REST API with fetch, axios, requests, or any HTTP client.