Managed Wallets

Managed wallets let your agent execute swaps without handling private keys. Suwappu generates the keypair, stores the private key securely, and signs transactions on your behalf when you call POST /swap/execute.

How It Works

  1. Create a wallet -- POST /wallets generates a new keypair server-side

  2. Fund the wallet -- Send tokens to the wallet address using an external wallet or exchange

  3. Get a quote -- POST /quote to get swap pricing

  4. Execute -- POST /swap/execute signs and submits the transaction using your managed wallet's private key

You never see or handle the private key. The server does all signing.

Wallet Types

Type
Chains Supported
Address Format

EVM

All 12 EVM chains (Ethereum, Base, Arbitrum, etc.)

0x... (42 characters)

Solana

Solana

Base58 (32-44 characters)

A single EVM wallet works across all EVM chains. Solana requires a separate wallet.

Step-by-Step Workflow

Step 1: Create a Wallet

curl -X POST https://api.suwappu.bot/v1/agent/wallets \
  -H "Authorization: Bearer suwappu_sk_your_api_key"

Response

Step 2: List Your Wallets

Response

Step 3: Fund the Wallet

Send tokens to the wallet address from any external source (exchange, another wallet, faucet for testnets). The wallet address works like any standard address on its supported chains.

For EVM wallets, send tokens on any supported EVM chain to the same 0x address. For Solana, send SPL tokens or SOL to the Base58 address.

Step 4: Get a Quote

Response

Step 5: Execute the Swap

Response

Step 6: Check Status

Complete Example: curl

Complete Example: Python

Complete Example: TypeScript

Last updated