docsCoinbase.backToDocs

docsCoinbase.title

docsCoinbase.subtitle

docsCoinbase.intro

docsCoinbase.chainsTitle

Arbitrum
USDCUSDTMXNB
Base
docsCoinbase.coinbaseNative
USDC
Polygon
USDCUSDTBRL1MXNB
Injective (testnet)
USDT
Base Sepolia
docsCoinbase.coinbaseNative
USDC
Arbitrum Sepolia
USDCMXNB

docsCoinbase.howItWorksTitle

1

docsCoinbase.step1Label

docsCoinbase.step1Desc

2

docsCoinbase.step2Label

docsCoinbase.step2Desc

3

docsCoinbase.step3Label

docsCoinbase.step3Desc

4

docsCoinbase.step4Label

docsCoinbase.step4Desc

5

docsCoinbase.step5Label

docsCoinbase.step5Desc

docsCoinbase.advantageTitle

docsCoinbase.advantageDesc

docsCoinbase.skillsTitle

authenticate
docsCoinbase.compatible
fund
docsCoinbase.compatible
send-usdc
docsCoinbase.compatible
trade
docsCoinbase.compatible
search-for-service
docsCoinbase.compatible
pay-for-service
docsCoinbase.compatible
monetize-service
docsCoinbase.compatible
check-balance
docsCoinbase.compatible

docsCoinbase.pricingTitle

docsCoinbase.pricingTooldocsCoinbase.pricingPrice
create_web3_escrow$0.15
fund_web3_escrow$0.10
release_web3_escrow$0.10
dispute_web3_escrow$0.10
get_web3_escrow$0.02
check_web3_status$0.01
list_web3_escrows$0.01
create_session_key$0.15
fund_with_session_key$0.10
check_balance$0.01
list_trade_offers$0.01
accept_trade$0.10
create_escrow$0.10
release_funds$0.05
upload_evidence$0.05
raise_dispute$0.05
request_refund$0.05
check_status$0.01
get_fx_rate$0.01
list_payments$0.01
cancel_payment$0.01

Endpoint: POST /api/v1/mcp/x402 • Pricing: GET /api/v1/mcp/x402/pricing

Tool Schemas

create_web3_escrow

payee_addressstringrequiredSeller/payee wallet address
amountnumberrequiredAmount in token units
token'USDC' | 'USDT' | 'MXNB'requiredERC-20 token
chain_idnumberrequired42161, 8453, 137
agent_private_keystringCDP wallet private key (signs tx)
use_zerodevbooleanUse gasless ZeroDev smart account

fund_web3_escrow

escrow_idnumberrequiredOn-chain escrow ID
amountnumberrequiredAmount to fund
token'USDC' | 'USDT' | 'MXNB'requiredERC-20 token
chain_idnumberrequiredChain ID
agent_private_keystringrequiredCDP wallet private key

create_escrow

amountnumberrequiredAmount to escrow
currency'MXN' | 'USD'requiredEscrow currency
payer_emailstringrequiredBuyer email
recipient_emailstringrequiredSeller email
deposit_currency'MXN' | 'USD'Buyer deposit currency
payout_currency'MXN' | 'USD'Seller payout currency
custody_daysnumberDays to hold (1-365, default: 30)

get_fx_rate

from'USD' | 'MXN' | 'USDC' | 'MXNB'requiredSource currency
to'USD' | 'MXN' | 'USDC' | 'MXNB'requiredTarget currency
amountnumberAmount to convert

get_web3_escrow

escrow_idnumberrequiredOn-chain escrow ID
chain_idnumberrequiredChain ID (42161, 8453, 137, 1439)

check_balance

wallet_addressstringrequiredWallet address to check
token'USDC' | 'USDT' | 'MXNB'requiredToken to check
chain_idnumberrequiredChain ID

Quick Start

# pip install cdp-agentkit-core
from cdp_agentkit_core import CdpAgent
import requests

# 1. Call the x402-protected endpoint
url = "https://kustodia-backend-566620759381.us-central1.run.app/api/v1/mcp/x402"
response = requests.post(url, json={
    "tool": "get_fx_rate",
    "params": { "from": "USD", "to": "MXN" }
})

# 2. Response: HTTP 402 with payment instructions
# { "accepts": [{ "scheme": "exact", "price": "$0.01",
#   "network": "eip155:8453", "payTo": "0xC8d5..." }] }

# 3. Agent wallet auto-pays USDC on Base, retries with payment header
# 4. Tool executes, returns result
# { "success": true, "result": { "rate": 17.45 } }

Bazaar Auto-Discovery

No manual registration needed — x402 Bazaar automatically catalogs your endpoint the first time a payment is processed through the facilitator.

Alchemy Agent Compatible

Alchemy agents use the same x402 protocol. Install Alchemy skills with npx skills add alchemyplatform/skills --yes — they'll auto-discover Kustodia's endpoint and pay with USDC via SIWE + x402.