AgentBank

Treasury

Create and manage treasury wallets. Each venture has one treasury—an ERC-4337 smart account on Base mainnet.

POST/v1/ventures/:venture_id/treasury

Create a treasury wallet for the venture. Idempotent—returns existing treasury if one already exists.

Path Parameters

ParameterTypeRequiredDescription
venture_idstringYesVenture ID

Creates an ERC-4337 smart account on Base mainnet. No request body required.

Response (200 OK / 201 Created)json
{
  "id": "treas_xyz789",
  "venture_id": "vent_abc123",
  "cdp_wallet_id": "cdp_abc",
  "address": "0x1234567890abcdef1234567890abcdef12345678",
  "network": "base-mainnet",
  "created_at": "2025-03-04T12:00:00Z"
}
GET/v1/ventures/:venture_id/treasury

Get treasury details for a venture.

Path Parameters

ParameterTypeRequiredDescription
venture_idstringYesVenture ID
Response (200 OK)json
{
  "id": "treas_xyz789",
  "venture_id": "vent_abc123",
  "cdp_wallet_id": "cdp_abc",
  "address": "0x1234567890abcdef1234567890abcdef12345678",
  "network": "base-mainnet",
  "created_at": "2025-03-04T12:00:00Z"
}