Introduction

Solana first.
Built for agents.

Give your agent a Solana home base, an EVM wallet, and one interface to onchain tools. Start with funds on Solana. Use Relay to bridge when the next action lives on another chain. Review transactions and execute them with the local CLI.

  1. Create walletsKeys stay in your runtime
  2. Fund on SolanaSOL + SPL tokens
  3. Bridge with RelayReview, sign locally, submit
  4. Use EVM toolsAfter verified settlement

Staying on Solana? Use Solana, Jupiter, Raydium, Pump.fun, and other supported actions directly.

Your agent owns the wallet.

The CLI creates keys locally. The hosted API accepts public addresses and returns data or unsigned transactions. The local CLI inspects transactions, signs approved bytes with your encrypted keystore, submits them to the chain RPC, and reads their status. Keys stay in the agent’s runtime.

v0.12 build guide

The progress map has separate hosted and local-build catalogs. A completed local action becomes callable through the hosted API only after deployment. Inspect the selected gateway with block-cli platforms and block-cli schema before use.

Preparation, signing and execution are separate.

Builders return preparations requiring the agent’s local owner signature. Perps limit preparations already contain a verified provider signature. Review the exact inputs, recipients and limits, sign locally, submit the saved bytes, then reconcile the chain or venue outcome. A passing simulation does not establish a later fill or bridge delivery.

Launch with a separate encrypted mint key

Pump launch inspection requires --mode pump-launch; Meteora DBC uses --mode meteora-dbc-launch; StonkFun uses --mode stonk-launch. The DBC and StonkFun policies bind a reviewed configuration hash. Generate the fresh mint in a separate encrypted Solana keystore, and pass only its public address to the launch builder. Keep the mint keystore encrypted with AGENT_CRYPTO_MINT_PASSWORD; the ordinary wallet uses AGENT_CRYPTO_WALLET_PASSWORD.

Inspect and locally sign an ordinary Pump launch
block-cli schema pumpfun build_launch
# Save the full prepared response as launch.json.
block-cli tx inspect --chain solana --mode pump-launch \
  --file launch.json --out launch-review.json
# Independently review the launch and choose your own fee/rent limits.
block-cli wallet sign --file wallet.enc.json \
  --additional-wallet mint.enc.json --review launch-review.json \
  --approve "$APPROVED_DIGEST" --max-fee 100000 --max-rent 10000000 \
  --out launch-signed.json
block-cli tx submit --file launch-signed.json
block-cli tx status --file launch-signed.json

Track markets in the agent runtime

Private watchlist and one observation pass
block-cli market init --store markets.json
block-cli market watchlist set --store markets.json --file watched-pair.json
block-cli market alert set --store markets.json --file threshold.json
block-cli market observe --store markets.json
block-cli market history --store markets.json --limit 100
block-cli market events list --store markets.json

The agent chooses when to poll and deliver. History begins when observation starts. Provider price timestamps are unavailable, so retrieval time must not be mistaken for a guarantee of fresh prices. Webhook delivery is explicit, signed and retryable; no background service is installed.

Run recurring swaps from the agent

Create a private plan with a raw-token budget, installment size, minimum output and interval. Each due installment waits for separate review and local signing. Bind the signed artifact to the plan before submitting, then reconcile its exact finalized receipt. A pending signed transaction is never automatically replaced.

Create and prepare one recurring installment
block-cli recurring create --plan swap-plan.json --file plan-input.json
block-cli recurring status --plan swap-plan.json
block-cli recurring prepare --plan swap-plan.json --out installment.json
# Continue with independent inspection, signing, binding and submission.
# See the recurring guide for the complete lifecycle and stale-plan recovery.

Jupiter Perps limit entries

jupiter_perps.build_limit prepares an entry request for the market asset on longs or USDC on shorts. Use block-cli jupiter-perps inspect, sign, submit and status for its dedicated owner and keeper signing flow. Local signing requires separate input, position-size, network-fee and rent limits. The trigger price does not cap the eventual fill price; transaction confirmation does not establish keeper fulfillment.

Protocol guides

Jupiter Trigger V1 is deferred. Trigger V2’s custodial vault model is outside this agent-owned wallet architecture. Check the Long protocol read before launching: its verified launcher was paused during the latest validation.

Connect in minutes

#

Install the versioned release with Node.js 22.12+. The CLI and HTTP API share the same capability registry. Hosted API calls need a gateway access key supplied by the service operator; local wallet commands run without one.

Terminal · install v0.12.0
npm install -g https://www.blockcli.dev/releases/block-cli-0.12.0.tgz
block-cli --version

export AGENT_CRYPTO_URL='https://agent-crypto-production.up.railway.app'
# Inject AGENT_CRYPTO_API_KEY from your runtime's secret store.

block-cli platforms
block-cli schema solana balance
block-cli call solana balance --params '{"address":"11111111111111111111111111111111"}'

Download the release archive and SHA-256 checksum. This package is distributed directly from blockcli.dev. The previous agent-crypto command remains an alias.

The balance example uses Solana’s public system-program address. Replace it with your agent’s public address when reading its balance. Set the gateway URL explicitly; the CLI otherwise defaults to localhost.

Already have an HTTP tool?

Call the hosted API directly from your agent’s runtime. Use the same gateway URL and access key. Wallet creation, signing, and submission happen through the local CLI; they are not hosted API endpoints.

HTTP · read a public Solana balance
curl --silent --show-error "$AGENT_CRYPTO_URL/v1/execute" \
  -H "Authorization: Bearer $AGENT_CRYPTO_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{
    "platform": "solana",
    "action": "balance",
    "params": {"address": "11111111111111111111111111111111"}
  }'
RequestPurpose
GET /v1/platformsDiscover platforms, available actions, and input schemas.
GET /v1/platforms/{id}Inspect one platform’s actions and limitations.
POST /v1/executeCall an action using platform, action, and params.
GET /openapi.jsonGet the authenticated OpenAPI 3.1 document.

API origin: https://agent-crypto-production.up.railway.app. These four endpoints require a Bearer key. /health and /v1/progress are public.

Create agent-owned wallets

#

Create an independent Solana keypair and EVM keypair in one encrypted local keystore. The EVM address works across supported EVM networks, including Ethereum, Base, BNB Chain, and Robinhood Chain. Balances remain separate on each network.

Local wallet creation
# Inject AGENT_CRYPTO_WALLET_PASSWORD from your secret store.
# It must contain at least 16 characters.
mkdir -p work

block-cli wallet create --chain both \
  --out work/agent-wallets.enc.json > work/wallet-public.json

block-cli wallet inspect --file work/agent-wallets.enc.json

--chain both is the default. Choose solana or evm to create only one wallet. wallet inspect unlocks and verifies the keystore, then prints public addresses. Both commands run locally without contacting the gateway.

Private material

Private keys are encrypted in the local keystore. Its file permissions are restricted, and creation refuses to overwrite an existing file. Inject the password through your runtime’s secret manager.

Public output

JSON output contains the keystore location and public addresses. Keep the encrypted file and its password recoverable; there is no recovery phrase, key export, or hosted recovery service.

The wallet password and gateway access key are separate secrets. Never put wallet passwords, private keys, keystore contents, or seed phrases in prompts or API parameters.

Using HTTP without the CLI?

A Node.js agent can call the local wallet module from the built source checkout, then use HTTP for platform actions. Reopen the same keystore on later runs.

JavaScript · local wallet module
import { createLocalWallets, inspectLocalWallets } from './dist/wallets.js';

const wallet = await createLocalWallets({
  chain: 'both',
  out: './agent-wallets.enc.json',
  password: process.env.AGENT_CRYPTO_WALLET_PASSWORD,
});
// Use wallet.wallets.solana.address and wallet.wallets.evm.address.
// Later: await inspectLocalWallets({ file: './agent-wallets.enc.json' });

Prepare a swap for local execution

#

Jupiter, Raydium and Meteora

swap quote returns a fresh exact-input quote. swap prepare requests a fresh unsigned build and saves its full response in a private file for tx inspect. Choose --provider jupiter, raydium or meteora and pass one of --params, --file, or --stdin. Preparing again never reuses an old quote or overwrites an existing file.

Jupiter · quote, prepare, and inspect
# Read the Solana public address from your wallet setup.
# Quote 1,000,000 lamports of SOL into USDC. Nothing is signed.
block-cli swap quote --provider jupiter --params '{
  "inputMint":"So11111111111111111111111111111111111111112",
  "outputMint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "amount":"1000000","slippageBps":50
}'

jq -n --arg wallet "$SOLANA_ADDRESS" '{
  wallet: $wallet,
  inputMint: "So11111111111111111111111111111111111111112",
  outputMint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  amount: "1000000", slippageBps: 50,
  maxPlatformFeeBps: 10, maxNetworkFeeLamports: "3000000",
  priorityFeeLamports: 10000
}' | block-cli swap prepare --provider jupiter --stdin \
  --out work/jupiter-prepared.json

block-cli tx inspect --chain solana --file work/jupiter-prepared.json \
  --out work/jupiter-review.json

The examples use the public Solana address from wallet setup; set your own amount and spending policy. Amounts are raw input-token units. Jupiter’s maxNetworkFeeLamports bounds reported signature fees, priority fees and rent during preparation; it is separate from the local signer’s --max-fee budget.

For Raydium, use its schema and omit Jupiter-only fee fields. computeUnitPriceMicroLamports sets priority pricing. A non-native SOL input requires inputAccount; wrapping flags and accounts must match the selected mints. Multi-transaction builds return explicit review indices and must be executed in order.

Inspect provider-specific swap fields
block-cli schema jupiter build_swap
block-cli schema raydium build_swap
block-cli swap prepare --provider raydium --file work/raydium-params.json \
  --out work/raydium-prepared.json

Meteora DLMM

Meteora quotes one selected DLMM pool from verified onchain liquidity. Supply the pool, input and output mints, raw input amount and slippage. Preparation additionally requires the wallet, an explicit minOutputAmount, maxNetworkFeeLamports and maxRentLamports. Network fees and account rent have separate ceilings.

Meteora · quote and prepare a bounded DLMM swap
# Set POOL, INPUT_MINT, OUTPUT_MINT and INPUT_AMOUNT_RAW for a DLMM pool.
block-cli schema meteora quote
block-cli schema meteora build_swap

jq -n --arg pool "$POOL" --arg input "$INPUT_MINT" \
  --arg output "$OUTPUT_MINT" --arg amount "$INPUT_AMOUNT_RAW" '{
    protocol: "dlmm", pool: $pool, inputMint: $input,
    outputMint: $output, amount: $amount, slippageBps: 100
  }' | block-cli swap quote --provider meteora --stdin

# Independently approve a minimum output and separate fee/rent budgets.
jq -n --arg pool "$POOL" --arg wallet "$SOLANA_ADDRESS" \
  --arg input "$INPUT_MINT" --arg output "$OUTPUT_MINT" \
  --arg amount "$INPUT_AMOUNT_RAW" --arg minOut "$MIN_OUTPUT_RAW" \
  --arg maxFee "$MAX_NETWORK_FEE_LAMPORTS" --arg maxRent "$MAX_RENT_LAMPORTS" '{
    protocol: "dlmm", pool: $pool, wallet: $wallet,
    inputMint: $input, outputMint: $output, amount: $amount,
    slippageBps: 100, minOutputAmount: $minOut,
    maxNetworkFeeLamports: $maxFee, maxRentLamports: $maxRent,
    priorityFeeMicroLamports: 0
  }' | block-cli swap prepare --provider meteora --stdin \
    --out work/meteora-prepared.json

block-cli tx inspect --chain solana --file work/meteora-prepared.json \
  --out work/meteora-review.json

The approved minimum must be at least the fresh quote’s otherAmountThreshold and no more than its outAmount. The builder quotes again, encodes that minimum and simulates before returning unsigned V0 bytes. Refresh and review again if the limit becomes stale. Optional priorityFeeMicroLamports defaults to zero; slippage defaults to 100 bps and is capped at 500 bps.

DLMM swaps support classic SPL pairs and native SOL wrapping through an isolated temporary account. The full input must fill within the supported liquidity-bin and transaction-size bounds. DLMM Token-2022 pairs and DAMM v2 swaps remain unsupported. The v0.12 build adds deposits and withdrawals for existing owned DLMM positions, plus dedicated two-key DBC launches; see the protocol guides.

Pump native SOL bonding curves

Use pumpfun.quote, build_buy, and build_sell for supported active curves. amount always means raw base-token units: exact tokens received for a buy, or exact tokens sold for a sell. Buys require maxSolCostLamports; sells require minSolOutputLamports. Both builders require separate network-fee and rent ceilings and simulate before returning unsigned V0 bytes.

Pump · quote and prepare a bounded buy
# Choose an active, supported native SOL curve and a raw token amount.
# TOKEN_AMOUNT_RAW is tokens out for a buy, not SOL in.
block-cli schema pumpfun quote
block-cli schema pumpfun build_buy
block-cli schema pumpfun build_sell

jq -n --arg mint "$PUMP_MINT" --arg amount "$TOKEN_AMOUNT_RAW" '{
  mint: $mint, side: "buy", amount: $amount, slippageBps: 100
}' | block-cli call pumpfun quote --stdin

# Approve the quote's maxSolCostLamports within your spending policy.
# The builder requires a limit within the fresh quote's slippage range.
jq -n --arg wallet "$SOLANA_ADDRESS" --arg mint "$PUMP_MINT" \
  --arg amount "$TOKEN_AMOUNT_RAW" --arg maxSol "$MAX_SOL_COST_LAMPORTS" '{
    wallet: $wallet, mint: $mint, amount: $amount, slippageBps: 100,
    maxSolCostLamports: $maxSol, maxNetworkFeeLamports: "100000",
    maxRentLamports: "5000000", priorityFeeMicroLamports: 0
  }' | block-cli call pumpfun build_buy --stdin > work/pump-prepared.json

block-cli tx inspect --chain solana --file work/pump-prepared.json \
  --out work/pump-review.json

For a sell, use side: "sell" when quoting, then call build_sell with minSolOutputLamports instead of maxSolCostLamports. Approve the quote’s suggested limit only if it fits your own spending policy. The builder requires the explicit limit to lie between the fresh estimate and its slippage bound; an unrelated larger budget is rejected. Mint decimals determine the human-readable token amount. Fees and curve reserves can change; use a fresh preparation and review its instructions before signing.

The Pump path rejects completed curves, migration-crossing quote requests, non-SOL quotes, mayhem, cashback and unsupported Token-2022 extensions. Reserves may change after preparation, so a V3 buy can still encounter migration at execution; the encoded maximum SOL cost remains applicable. Classic SPL and supported metadata-only Token-2022 mints are accepted. PumpSwap trading remains separate. The v0.12 build adds ordinary Pump token launches through a dedicated two-key policy; see the build guide.

Review, sign locally, and submit

#

Execute prepared Jupiter, Raydium, Meteora DLMM and supported Pump swaps, Jupiter Perps request transactions, native Relay deposits, and supported transfers with your agent-owned wallet. The hosted API prepares unsigned data; these four commands run in the agent’s runtime and connect directly to the configured chain RPC.

Inspect a prepared Solana transaction
block-cli tx inspect --chain solana --file work/bridge.json \
  --out work/bridge-review.json

--chain accepts solana, ethereum, base, bnb, or robinhood. Inspection resolves Solana lookup tables and lists instructions and accounts, or constructs and displays the unsigned EVM transaction and calldata. Review the signer, chain, recipients, token amounts, output limits, programs or contracts, expiry, and fees.

Approve the exact transaction.

Your agent’s policy must review the transaction before supplying its approvalDigest. The digest binds approval to the inspected transaction; it does not decide whether an instruction or contract is safe. Do not automatically copy the digest into a signing command just because inspection succeeded.

Sign after independent review · then submit and check status
# Set APPROVED_DIGEST only after your policy approves the review.
# Example fee budget: 100,000 lamports. Choose your own limit.
block-cli wallet sign --file work/agent-wallets.enc.json \
  --review work/bridge-review.json --approve "$APPROVED_DIGEST" \
  --max-fee 100000 --out work/bridge-signed.json

# This broadcasts the saved signed bytes and can move funds.
block-cli tx submit --file work/bridge-signed.json
block-cli tx status --file work/bridge-signed.json

The signer rechecks the local wallet, chain, fees, and transaction validity, and simulates before signing. The fee budget uses raw lamports on Solana and wei on EVM. It is a network-fee budget, separate from transferred assets, token approvals, account rent, transfer-based tips, and protocol fees. Signed artifacts are saved with restricted permissions; private keys are never printed or sent to the gateway.

The review file has a top-level approvalDigest; the inspection command’s stdout envelope places it at data.approvalDigest. Configure your runtime’s RPC using SOLANA_RPC_URL, ETHEREUM_RPC_URL, BASE_RPC_URL, BNB_RPC_URL, or ROBINHOOD_RPC_URL. Defaults use public RPCs; providers may rate-limit requests. Gateway API keys are not forwarded to RPCs. Endpoints come from local configuration, never a prepared transaction’s metadata.

On Base, the fee budget includes a reserve of twice the current estimated L1 data and operator fees. Those extra fees can exceed the reserve after signing; it is not an onchain total-fee cap. EVM signed transactions have no automatic expiry. Recheck bridge terms before submission.

Confirm before the next step

tx submit validates the signature and broadcasts the exact signed bytes. Only state: "submitted" establishes RPC acceptance; unknown does not. A successful JSON envelope does not mean the transaction succeeded. Use tx status to reconcile the saved transaction. After an ambiguous timeout, check status before retrying; retrying the same artifact does not create new transaction bytes. Do not automatically prepare and sign a replacement.

For multiple Raydium transactions, inspection requires --index N. Review and approve each transaction separately, and wait for earlier dependencies to confirm before inspecting and signing the next. The CLI does not orchestrate or enforce the full sequence. An expired Solana blockhash with no observed signature does not prove the transaction never landed; reconcile an unknown result before creating a replacement.

StateMeaning
submittedRPC accepted the bytes; inclusion is not established.
pendingNot yet confirmed; keep tracking the same transaction.
confirmed / finalizedObserved chain status. L2 finality is RPC-reported and is not proof of settlement on Ethereum L1.
failedAn execution error was observed; network fees may have been charged.
unknownThe RPC could not establish the outcome. Reconcile before replacing.

Supported paths and current limits

Local execution supports existing Solana and EVM transfer preparations, Jupiter, Raydium, Meteora DLMM and supported Pump swap bytes, Jupiter Perps request creation, and native SOL or native EVM Relay deposits. The v0.12 build also prepares token-origin Relay stages, supported launch transactions and protocol-specific liquidity changes; each path has its own guide and limits. For a bridge, check origin status with tx status, then use relay.status with the preparation’s inner data.requestId and verify destination receipt. For a perpetual request, track jupiter_perps.request_status and the resulting position after chain confirmation.

Hyperliquid uses its separate local action signing commands. The v0.12 build adds Pons launch execution and supported token-origin bridges. Generic byte approval is not an automatic semantic audit of arbitrary contract calls. Simulation and exact-byte approval do not guarantee execution or safe contract behavior.

Execution is pinned to Solana mainnet and EVM chain IDs 1, 8453, 56, and 4663. Generic Solana execution requires one signer and a recent blockhash. Dedicated launch policies support separate payer and mint signatures. Durable nonce transactions are unsupported. EVM signing requires an ordinary account without delegated code. The local execution release is verified with offline signatures and mocked RPC flows. Funded mainnet swaps and bridges have not been executed as release validation. MCP continues to expose API preparation tools only; local signing is a separate CLI step.

Connect your agent with MCP

#

Run block-cli mcp as a local stdio server. It discovers the authenticated gateway catalog and exposes each available action as a tool named platform__action, such as solana__balance or base__prepare_transfer_token. Inputs use the API’s current schemas.

MCP client configuration · installed CLI on PATH
{
  "mcpServers": {
    "block-cli": {
      "command": "block-cli",
      "args": [
        "mcp",
        "--platforms", "solana,relay,base"
      ],
      "env": {
        "AGENT_CRYPTO_URL": "https://agent-crypto-production.up.railway.app"
      }
    }
  }
}

Build the CLI first. Configure your MCP client to inject AGENT_CRYPTO_API_KEY from its secret store into the child process. The example supplies only the public gateway URL. Keep credentials out of committed configuration and prompts.

Terminal · restrict tools to reads
block-cli mcp --platforms solana,relay,base --read-only

--platforms limits the exposed platforms. --read-only exposes only actions with the read scope. Gateway permissions still apply. Omit these filters to expose the available catalog.

Tools use public inputs.

The MCP server forwards catalog-defined API calls. It does not expose local wallet creation, keystore files, private keys, signing, or transaction submission. Create wallets separately in your agent runtime and provide their public addresses.

In MCP mode, stdout carries protocol messages for the client. Ordinary CLI commands continue to return their JSON envelopes.

Fund the Solana home base

#

Deposit SOL or supported SPL tokens to the agent’s Solana address using your existing wallet or funding service. Keep enough native SOL for transaction fees. The CLI does not initiate an exchange withdrawal or automatically fund a new wallet.

Read the agent’s public addresses and SOL balance
# These examples use jq to read public addresses.
export SOLANA_ADDRESS="$(jq -r '.data.wallets.solana.address' work/wallet-public.json)"
export EVM_ADDRESS="$(jq -r '.data.wallets.evm.address' work/wallet-public.json)"

jq -n --arg address "$SOLANA_ADDRESS" '{address: $address}' |
  block-cli call solana balance --stdin

block-cli schema solana token_accounts

Use solana.balance for native SOL and solana.token_accounts for SPL holdings. The gateway can prepare SOL and classic SPL Token transfers and simulate unsigned Solana transactions. Token-2022 transfers are not currently prepared.

Amounts are integer strings."100000000" lamports = 0.1 SOL.slippageBps: 50 = 0.5%.

Use each token’s decimals and BigInt for raw arithmetic. Do not convert large raw amounts to JavaScript Number.

Go from Solana to EVM

#

Ask Relay for available chains and currencies, inspect a route, then prepare a fresh unsigned deposit with the Solana address as payer and EVM address as recipient. A supported destination in the catalog does not guarantee liquidity or an available route.

Inspect Relay before preparing a bridge
block-cli call relay chains --params '{"chainIds":[792703809,1,8453,56,4663],"limit":20}'
block-cli schema relay quote
block-cli schema relay prepare_bridge_solana
Prepare native SOL → Base ETH
# 100,000,000 lamports = 0.1 SOL. Destination: native ETH on Base.
# This prepares an unsigned transaction; it does not move funds.
jq -n --arg user "$SOLANA_ADDRESS" --arg recipient "$EVM_ADDRESS" '{
  user: $user,
  recipient: $recipient,
  originChainId: 792703809,
  destinationChainId: 8453,
  originCurrency: "11111111111111111111111111111111",
  destinationCurrency: "0x0000000000000000000000000000000000000000",
  amount: "100000000",
  slippageBps: 50,
  maxGasFeeAmount: "100000"
}' | block-cli call relay prepare_bridge_solana --stdin > work/bridge.json

The example uses public addresses from the wallet setup above. For an informational quote, call relay quote with the same parameters except maxGasFeeAmount. SOL’s Relay currency identifier is the system address, not the wrapped SOL mint.

Preparation is one step in the bridge flow.

The native SOL path returns an unsigned V0 transaction. It validates the expected deposit instruction, payer, order, vault, and fee bounds. It does not check your balance, simulate, sign, or submit the transaction. Use the local execution workflow to review the exact deposit, simulate it, sign it, and submit within its validity window.

Native SOL origin preparation is supported. The v0.12 prepare_bridge_token action adds classic-SPL origin deposits and separate exact ERC-20 approval, reset and deposit stages. See the Relay guide for its route, allowance and rent constraints. maxGasFeeAmount is in origin native units (lamports for Solana) and limits the supported fee estimates; it is not a guarantee of bridge completion.

The response includes transactionBase64, blockhash, and lastValidBlockHeight. An access key with the simulate scope can dry-run the unsigned transaction:

Simulate the unsigned Solana deposit
jq '{transactionBase64: .data.transactionBase64}' work/bridge.json |
  block-cli call solana simulate --stdin

Simulation replaces the blockhash and does not verify signatures. It does not establish future success or extend the original transaction’s validity.

Track the Relay intent
# Relay's data.requestId identifies the bridge intent.
# The outer requestId identifies the gateway request.
jq '{requestId: .data.requestId}' work/bridge.json |
  block-cli call relay status --stdin

Wait for a filled intent and verify the destination transaction and recipient balance before using EVM funds. A pending intent is not delivered; a refund is not a successful destination payment. Status is Relay-reported, not independent onchain verification.

DestinationChain IDNative fee asset
Ethereum1ETH
Base8453ETH
BNB Chain56BNB
Robinhood Chain4663ETH

Select a route and destination currency from Relay discovery. Your EVM wallet may need native destination tokens for gas even when the received asset is a token.

Prepare token transfers

#

Send classic SPL tokens to a wallet

solana.prepare_transfer_token_to_wallet derives the recipient’s canonical associated token account. It verifies the source owner, mint, decimals, token balances, and initialized state. When explicitly enabled, a missing recipient account is created in the same unsigned transaction as the transfer.

Solana · optional associated token account creation
# Set MINT and SOURCE_TOKEN_ACCOUNT to reviewed public addresses.
# Set RECIPIENT_SOLANA to the intended recipient wallet.
jq -n --arg wallet "$SOLANA_ADDRESS" \
  --arg recipient "$RECIPIENT_SOLANA" --arg mint "$MINT" \
  --arg source "$SOURCE_TOKEN_ACCOUNT" '{
    wallet: $wallet, recipient: $recipient,
    mint: $mint, sourceTokenAccount: $source,
    amount: "1000000", decimals: 6, maxFeeLamports: "10000",
    createAssociatedTokenAccount: true, maxRentLamports: "2039280"
  }' | block-cli call solana prepare_transfer_token_to_wallet --stdin

Creation defaults to false, and the rent allowance defaults to "0". Existing recipient accounts require no creation or rent allowance. A fresh on-curve recipient wallet is supported. The example amount is one token only when the mint has six decimals; choose your own amount and fee budgets.

The response separates rentEstimate, feeEstimate, and solCostEstimate. Rent and network ceilings are preparation checks, not on-chain guards. Token-2022, wrapped SOL, off-curve recipients, multisig, and delegated transfers remain unsupported.

Prepare ERC-20 transfers on EVM

Use prepare_transfer_token on ethereum, base, bnb, or robinhood. Each action requires a token contract, exact raw amount, expected decimals, and a native fee budget. The sender and recipient must be ordinary wallets with empty code.

Base · unsigned ERC-20 preparation
# Choose a reviewed token contract and recipient on Base.
jq -n --arg wallet "$EVM_ADDRESS" --arg recipient "$RECIPIENT_EVM" \
  --arg contract "$TOKEN_CONTRACT" '{
    wallet: $wallet, recipient: $recipient, contract: $contract,
    amount: "1000000", decimals: 6, maxFeeWei: "1000000000000000"
  }' | block-cli call base prepare_transfer_token --stdin

The gateway verifies chain identity, token code, decimals, balances, gas, and a successful transfer simulation returning canonical true. It returns unsigned transaction bytes. Empty-return tokens are unsupported; simulation does not establish token legitimacy or exact delivery for fee-on-transfer or rebasing tokens.

Keep native gas funds on the destination chain. Base’s L1 data and operator fees remain estimates outside the encoded execution cap. Use local inspection and signing to recheck chain, nonce, and fees. Your agent must review token behavior and recipients. Neither transfer path moves funds by preparing it.

Create and track a Jupiter Perps request

#

build_increase prepares an unsigned request to open or increase a position. build_decrease prepares a reduction or close. These Solana transactions use the ordinary tx inspect, wallet sign, tx submit and tx status commands. Your wallet is the only signer; no instant keeper cosignature is required.

Jupiter Perps · prepare and inspect a position request
block-cli schema jupiter_perps build_increase
block-cli schema jupiter_perps build_decrease
block-cli schema jupiter_perps request_status

# SOL long: collateral is raw SOL lamports; size and price use USD6 units.
# Allocate a fresh REQUEST_COUNTER and choose each limit independently.
jq -n --arg wallet "$SOLANA_ADDRESS" --arg size "$SIZE_USD6" \
  --arg collateral "$COLLATERAL_RAW" --arg price "$PRICE_LIMIT_USD6" \
  --arg counter "$REQUEST_COUNTER" --arg maxFee "$MAX_NETWORK_FEE_LAMPORTS" \
  --arg maxRent "$MAX_RENT_LAMPORTS" '{
    walletAddress: $wallet, asset: "SOL", side: "long",
    sizeUsdDelta: $size, collateralAmount: $collateral,
    priceLimitUsd: $price, requestCounter: $counter,
    maxNetworkFeeLamports: $maxFee, maxRentLamports: $maxRent,
    priorityFeeMicroLamports: 0
  }' | block-cli call jupiter_perps build_increase --stdin \
    > work/jupiter-perps-prepared.json

block-cli tx inspect --chain solana --file work/jupiter-perps-prepared.json \
  --out work/jupiter-perps-review.json

Choose asset from SOL, ETH or BTC, and side from long or short. Long collateral is the market asset; short collateral is USDC. collateralAmount uses the mint’s raw units, while sizeUsdDelta and priceLimitUsd use six-decimal USD integer strings: "1000000" means $1. Price is an absolute execution bound: a maximum for increase-long or decrease-short, and a minimum for increase-short or decrease-long. The API does not calculate a position from a leverage target.

Allocate a unique requestCounter for each intended request; the gateway does not reserve it. Both builders require separate network-fee and rent ceilings and simulate before returning unsigned bytes. Rent covers the request, escrow and any new token or position accounts; these ceilings are preparation checks and must be reviewed again before signing. For a collateral deposit, set sizeUsdDelta: "0" on an existing open position. A decrease requires collateralUsdDelta in USD6 and entirePosition: full close uses true with both deltas "0"; a partial reduction or collateral withdrawal uses false with at least one nonzero delta. SOL-long proceeds remain wrapped SOL in the receiving token account.

Jupiter Perps · approve, sign and submit the request
# Set APPROVED_DIGEST only after reviewing all instructions and risk limits.
block-cli wallet sign --file work/agent-wallets.enc.json \
  --review work/jupiter-perps-review.json --approve "$APPROVED_DIGEST" \
  --max-fee "$MAX_NETWORK_FEE_LAMPORTS" --out work/jupiter-perps-signed.json

# This can deposit collateral and queue a real position change.
block-cli tx submit --file work/jupiter-perps-signed.json
block-cli tx status --file work/jupiter-perps-signed.json

# Read the public request address, then track keeper execution separately.
export POSITION_REQUEST="$(jq -r '.data.request.positionRequest' work/jupiter-perps-prepared.json)"
jq -n --arg wallet "$SOLANA_ADDRESS" --arg request "$POSITION_REQUEST" \
  '{walletAddress: $wallet, positionRequest: $request}' |
  block-cli call jupiter_perps request_status --stdin
block-cli schema jupiter_perps positions
Request confirmation is not trade execution.

A confirmed request transaction creates a request for a keeper. Read request_status and the resulting position before concluding that the position changed. An absent or closed request remains unknown: execution and rejection can both close it. Reconcile uncertain outcomes before preparing another request.

request_status returns pending_or_unresolved for a verified request with executed: false, executed only when a verified program-owned request records execution, and unknown for a missing account. It always returns retrySafe: false; none of these states authorizes an automatic replacement. The executed flag is not a recomputation of the position’s PnL.

The v0.12 build adds converted funding, fixed-notional TP/SL and request cancellation. Automatic leverage sizing and instant multisigner routes require separate support; consult the current build guide. Simulation checks request creation; it does not guarantee keeper execution, future fill price or position safety. No funded perpetual request was submitted as release validation.

Review and sign Hyperliquid actions

#

Prepare unsigned limit orders, order cancellations, and leverage updates for Hyperliquid’s default perpetual markets. Use a direct account signer; API-wallet delegation, subaccounts, vaults, spot trading and HIP-3 markets are outside this interface. The v0.12 build adds spot balance reads, isolated margin changes and dedicated spot/perps USDC transfer signing.

Hyperliquid · inspect schemas and prepare a limit order
# This only prepares an unsigned action. Use your own account address.
# Allocate a unique millisecond nonce in your agent runtime.
block-cli schema hyperliquid prepare_order
block-cli schema hyperliquid prepare_cancel
block-cli schema hyperliquid prepare_leverage

jq -n --arg user "$EVM_ADDRESS" --argjson nonce "$NONCE_MS" '{
  user: $user, coin: "BTC", side: "buy",
  limitPrice: "80000", size: "0.001", timeInForce: "Alo",
  reduceOnly: false, maxNotionalUsd: "80",
  nonce: $nonce, expiresAfter: ($nonce + 60000)
}' | block-cli call hyperliquid prepare_order --stdin > work/hyperliquid-prepared.json

Choose Alo for post-only, Ioc for immediate-or-cancel, or Gtc for good-till-cancel. Prices and sizes are decimal strings checked against current market precision without rounding. maxNotionalUsd checks limit price × size and excludes trading fees and funding; a sell fill at a better price can have greater notional.

Allocate a fresh unique nonce for the signer. It must be within five minutes before to one minute after gateway time. expiresAfter must be later than now and the nonce, and no more than five minutes ahead. Submission expiry does not cancel a resting order.

Use the dedicated Hyperliquid commands.

The response includes the protocol action, nonce, expiry and expected direct signer. hyperliquid inspect creates a review bound to the exact action; hyperliquid sign uses the local EVM key only after digest approval. These are protocol L1 action signatures, not EVM transaction bytes. Generic typed-message signing, delegated API wallets, vaults, builder fees, trigger orders and batches are unsupported.

Hyperliquid · inspect, approve, sign, submit once, and reconcile
block-cli hyperliquid inspect --file work/hyperliquid-prepared.json \
  --out work/hyperliquid-review.json

# Set APPROVED_DIGEST only after reviewing the exact action and account.
block-cli hyperliquid sign --file work/agent-wallets.enc.json \
  --review work/hyperliquid-review.json --approve "$APPROVED_DIGEST" \
  --max-notional-usd 80 --out work/hyperliquid-signed.json

# Submits one signed action; it can create or change a real position.
block-cli hyperliquid submit --file work/hyperliquid-signed.json

# Reconcile using the numeric order ID from the venue response.
jq -n --arg user "$EVM_ADDRESS" --argjson orderId "$ORDER_ID" \
  '{user: $user, orderId: $orderId}' |
  block-cli call hyperliquid order_status --stdin

Order signatures require an independent --max-notional-usd limit. It checks limit price × size, excluding trading fees and funding; it is not a guarantee of realized notional. Cancel and leverage actions use the same review and approval flow without this order-only flag. The local signer does not independently verify market metadata, account eligibility, available margin or order ownership.

hyperliquid submit verifies the saved signature and sends the action once to the official venue. Inspect the returned state: resting, filled, partially-filled, canceled, accepted, rejected, or unknown. These are venue responses, not chain-finality claims. An accepted leverage update is not an order fill.

Use order_status, open_orders and user_fills to reconcile an ambiguous result before creating another action. order_status accepts a numeric order ID or a 16-byte hexadecimal client order ID; an unknown ID does not prove failure. A caller-selected clientOrderId on preparation gives orders an identifier before submission. Do not automatically retry or replace an unknown action. Submission expiry does not cancel resting orders.

For cancellation, supply user, coin, orderId, nonce, and expiresAfter. For leverage, replace orderId with leverage and isCross. Market leverage and margin-mode limits are checked. Jupiter Perps uses the separate Solana request workflow.

One registry. Every capability.

#

The local runtime exposes 22 commands, documented separately from hosted actions. This API reference is generated from the snapshot for v0.12.0: 130 registered actions across 16 platform and tool groups. Fetch the authenticated runtime catalog before calling an action; it contains current schemas and limitations.

read Inspect or quoteprepare Build unsigned transactions or actionssimulate Dry-run an unsigned transaction
Solana RPC7 actions

Read balances and status, prepare unsigned SOL/classic SPL transfers, and simulate unsigned transactions.

solana · runtime schemas
block-cli platforms solana
block-cli schema solana prepare_transfer_sol
prepare_transfer_solprepare
Prepare an unsigned native SOL transfer between existing ordinary wallets with an explicit fee ceiling.
prepare_transfer_tokenprepare
Prepare an unsigned TransferChecked for existing classic SPL token accounts; rejects Token-2022 and wrapped SOL.
prepare_transfer_token_to_walletprepare
Prepare a classic SPL token transfer to a wallet’s canonical associated token account, with optional atomic account creation and separate rent/network fee ceilings.
balanceread
Get native SOL balance; lamports and SOL are exact decimal strings.
token_accountsread
List classic SPL Token and Token-2022 accounts owned by an address.
transaction_statusread
Look up a transaction signature, including historical status when available.
simulatesimulate
Simulate one unsigned base64 transaction without signing or broadcasting.
Current limitations
  • Never stores keys, signs, or broadcasts transactions.
  • Native balances above JavaScript safe-integer precision are rejected instead of rounded.
  • Simulation does not verify signatures and cannot prove a transaction is safe or will execute later.
  • Individual simulations do not carry state across a multi-transaction sequence.
  • Transfers require on-curve wallets and an explicit network fee ceiling; no priority fee. Native transfers require existing ordinary wallets.
  • Token transfers support classic SPL Token only, with existing owner-controlled source accounts; no Token-2022, wrapped SOL, multisig, or delegated transfers.
  • Transfer-to-wallet can optionally create the canonical recipient associated token account atomically with a separate rent ceiling. Rent/fee ceilings require rechecking before signing and are not enforced by an on-chain guard.
Robinhood Chain6 actions

Read Robinhood Chain mainnet state and prepare unsigned native ETH and ERC-20 transfers.

robinhood · runtime schemas
block-cli platforms robinhood
block-cli schema robinhood chain_info
chain_inforead
Verify Robinhood mainnet and read the current L2 block identity.
balanceread
Read an address native ETH balance as exact wei at a canonical block hash.
token_balanceread
Read exact balance and decimals for one specified ERC-20 contract at a canonical block hash.
transaction_statusread
Read transaction/receipt state and verify L2 block inclusion without claiming L1 finality.
prepare_transfer_nativeprepare
Prepare an unsigned native ETH transfer on Robinhood Chain 4663 between ordinary wallets with a total network fee ceiling.
prepare_transfer_tokenprepare
Prepare and simulate an unsigned ERC-20 transfer on Robinhood Chain using exact raw token units and a native fee budget.
Current limitations
  • Mainnet chain 4663 only. No custody, signing, broadcasting, bridging, or stock-token trading.
  • State reads use canonical block hashes and require an EIP-1898-capable RPC. Public RPC access is rate-limited.
  • Token balance requires a caller-specified contract implementing ERC-20 balanceOf and decimals; it does not discover tokens or verify their legitimacy.
  • Transaction confirmation means observed L2 receipt inclusion only; Ethereum posting and L1 finality are not verified.
  • ERC-20 transfer preparation requires empty-code sender and recipient wallets, matching expected decimals, sufficient token/native balances, and an eth_call returning canonical true. Empty-return tokens are unsupported. Simulation does not verify token legitimacy or recipient amounts for fee-on-transfer/rebasing tokens. Pending reads are not atomic, and no transaction is signed or broadcast.
Ethereum6 actions

Read Ethereum mainnet state and prepare unsigned native ETH and ERC-20 transfers.

ethereum · runtime schemas
block-cli platforms ethereum
block-cli schema ethereum chain_info
chain_inforead
Verify Ethereum mainnet and read the current block identity.
balanceread
Read an address native ETH balance as exact wei at a canonical block hash.
token_balanceread
Read exact balance and decimals for one specified ERC-20 contract at a canonical block hash.
transaction_statusread
Read transaction/receipt state and verify canonical block inclusion without claiming finality.
prepare_transfer_nativeprepare
Prepare an unsigned native ETH transfer on Ethereum between ordinary wallets with a preparation-time fee budget.
prepare_transfer_tokenprepare
Prepare and simulate an unsigned ERC-20 transfer on Ethereum using exact raw token units and a native fee budget.
Current limitations
  • Mainnet chain 1 only. Native currency is ETH. No custody, signing, broadcasting, bridging, or trading.
  • Balance and token state reads require EIP-1898 canonical block hash support; unsupported providers fail closed. Public RPCs may impose rate limits.
  • Token balance requires a caller-specified contract implementing ERC-20 balanceOf and decimals. It does not discover tokens or verify their legitimacy; decimals must be uint8 and calls are limited to 200,000 gas each.
  • Transaction confirmation means observed canonical receipt inclusion only. Consensus finality and confirmation depth are not verified.
  • Native transfer preparation supports ordinary empty-code wallets only and does not sign or broadcast. Pending reads are not atomic; an external signer must recheck the chain, recipient, nonce, code, balance, and fees.
  • ERC-20 transfer preparation requires empty-code sender and recipient wallets, matching expected decimals, sufficient token/native balances, and an eth_call returning canonical true. Empty-return tokens are unsupported. Simulation does not verify token legitimacy or recipient amounts for fee-on-transfer/rebasing tokens.
Base6 actions

Read Base mainnet state and prepare unsigned native ETH and ERC-20 transfers.

base · runtime schemas
block-cli platforms base
block-cli schema base chain_info
chain_inforead
Verify Base mainnet and read the current block identity.
balanceread
Read an address native ETH balance as exact wei at a canonical block hash.
token_balanceread
Read exact balance and decimals for one specified ERC-20 contract at a canonical block hash.
transaction_statusread
Read transaction/receipt state and verify canonical block inclusion without claiming finality.
prepare_transfer_nativeprepare
Prepare an unsigned native ETH transfer on Base between ordinary wallets with a preparation-time fee budget.
prepare_transfer_tokenprepare
Prepare and simulate an unsigned ERC-20 transfer on Base using exact raw token units and a native fee budget.
Current limitations
  • Mainnet chain 8453 only. Native currency is ETH. No custody, signing, broadcasting, bridging, or trading.
  • Balance and token state reads require EIP-1898 canonical block hash support; unsupported providers fail closed. Public RPCs may impose rate limits.
  • Token balance requires a caller-specified contract implementing ERC-20 balanceOf and decimals. It does not discover tokens or verify their legitimacy; decimals must be uint8 and calls are limited to 200,000 gas each.
  • Transaction confirmation means observed canonical L2 receipt inclusion only. Ethereum posting and L1 finality are not verified.
  • Native transfer preparation supports ordinary empty-code wallets only and does not sign or broadcast. Pending reads are not atomic; an external signer must recheck the chain, recipient, nonce, code, balance, and fees.
  • ERC-20 transfer preparation requires empty-code sender and recipient wallets, matching expected decimals, sufficient token/native balances, and an eth_call returning canonical true. Empty-return tokens are unsupported. Simulation does not verify token legitimacy or recipient amounts for fee-on-transfer/rebasing tokens.
  • Base maxFeeWei is a preparation-time budget covering execution plus a reserve for current L1 data and operator fee estimates. Supplemental fees can change; only execution fees are capped by the serialized transaction.
BNB Chain6 actions

Read BNB Chain mainnet state and prepare unsigned native BNB and ERC-20 transfers.

bnb · runtime schemas
block-cli platforms bnb
block-cli schema bnb chain_info
chain_inforead
Verify BNB Chain mainnet and read the current block identity.
balanceread
Read an address native BNB balance as exact wei at a canonical block hash.
token_balanceread
Read exact balance and decimals for one specified ERC-20 contract at a canonical block hash.
transaction_statusread
Read transaction/receipt state and verify canonical block inclusion without claiming finality.
prepare_transfer_nativeprepare
Prepare an unsigned native BNB transfer on BNB Chain between ordinary wallets with a preparation-time fee budget.
prepare_transfer_tokenprepare
Prepare and simulate an unsigned ERC-20 transfer on BNB Chain using exact raw token units and a native fee budget.
Current limitations
  • Mainnet chain 56 only. Native currency is BNB. No custody, signing, broadcasting, bridging, or trading.
  • Balance and token state reads require EIP-1898 canonical block hash support; unsupported providers fail closed. Public RPCs may impose rate limits.
  • Token balance requires a caller-specified contract implementing ERC-20 balanceOf and decimals. It does not discover tokens or verify their legitimacy; decimals must be uint8 and calls are limited to 200,000 gas each.
  • Transaction confirmation means observed canonical receipt inclusion only. Consensus finality and confirmation depth are not verified.
  • Native transfer preparation supports ordinary empty-code wallets only and does not sign or broadcast. Pending reads are not atomic; an external signer must recheck the chain, recipient, nonce, code, balance, and fees.
  • ERC-20 transfer preparation requires empty-code sender and recipient wallets, matching expected decimals, sufficient token/native balances, and an eth_call returning canonical true. Empty-return tokens are unsupported. Simulation does not verify token legitimacy or recipient amounts for fee-on-transfer/rebasing tokens.
Solana market discovery3 actions

Search indexed Solana pairs for Pump.fun/PumpSwap, Meteora/DBC, and Raydium through DexScreener.

discovery · runtime schemas
block-cli platforms discovery
block-cli schema discovery launch_feed
launch_feedread
Combine bounded Pump events, StonkFun recent launches and canonical Pons/Long events, retaining each source cursor, timestamps and partial-failure state.
searchread
Search indexed Solana pairs and filter to supported DEX venues.
token_pairsread
List indexed Solana pairs for a mint at supported DEX venues.
Current limitations
  • Third-party indexed data may be delayed or incomplete; results are untrusted market metadata.
  • DEX filters identify current market venues, not a token launch origin.
  • Launch feed covers bounded Pump, StonkFun, Pons and Long pages, with separate cursors and explicit partial failures. It is not a complete newly launched token stream.
  • Search is limited to the provider result set before local platform filtering.
Raydium8 actions

Indexed pools and routed quotes, plus locally built and verified direct CPMM swaps and liquidity transactions for agent-owned wallets.

raydium · runtime schemas
block-cli platforms raydium
block-cli schema raydium build_buy
build_buyprepare
Prepare and simulate a direct CPMM exact-input buy: quoteMint to baseMint, bounded by minAmountOut. Existing classic-token ATAs only.
build_sellprepare
Prepare and simulate a direct CPMM exact-input sell: baseMint to quoteMint, bounded by minAmountOut. Existing classic-token ATAs only.
build_add_liquidityprepare
Prepare and simulate an exact LP mint with encoded maximum token0/token1 deposits. Existing canonical ATAs only.
build_remove_liquidityprepare
Prepare and simulate an exact LP burn with encoded minimum token0/token1 withdrawals. Existing canonical ATAs only.
poolsread
List or filter indexed Raydium pools by mint addresses and pool type with bounded cursor pagination.
poolread
Inspect one indexed Raydium pool by its Solana pool account address.
quoteread
Get an exact-input quote. Amounts use raw token units as decimal strings.
build_swapprepare
Fetch a fresh quote and prepare unsigned swap transactions for an external signer.
Current limitations
  • Mainnet only. Direct build_buy/build_sell/build_add_liquidity/build_remove_liquidity support canonical CPMM pools, classic SPL Token and existing canonical owner ATAs. No direct AMM v4/CLMM liquidity, Token-2022, account creation, SOL wrapping/unwrapping, or pool creation.
  • Pool reads are indexed snapshots, not executable quotes. Search uses exact mint addresses and provider cursors; names and symbols are not search terms.
  • Pool pagination is not an atomic snapshot. Reuse the same filters with nextPageId; expired cursors require a fresh search. Market figures are approximate provider numbers.
  • Slippage is capped at 500 bps; requested compute-unit price is capped at 1,000,000 micro-lamports.
  • Legacy routed build_swap passes structural, signer and fee-payer checks only; its provider instructions and lookup tables are not audited. It still requires an independent signer policy.
  • Direct CPMM builders pin programs, account layouts and PDAs, encode caller amount limits, and verify exact simulated token/LP deltas. The generic local wallet signs the reviewed bytes; network fee caps and simulation remain offchain snapshots.
  • Multiple transactions may depend on earlier state changes; separate simulations do not simulate a bundle.
Pump.fun9 actions

Read on-chain Pump state, quote active SOL bonding curves, and prepare simulated unsigned buys, sells and ordinary token launches for local signing.

pumpfun · runtime schemas
block-cli platforms pumpfun
block-cli schema pumpfun quote
quoteread
Quote raw base-token buys (exact output) or sells (exact input) on active native-SOL Pump curves using the official SDK and live fee state.
build_buyprepare
Prepare and simulate an unsigned native-SOL Pump buy with exact raw token output, an explicit maximum SOL debit and fee/rent ceilings.
build_sellprepare
Prepare and simulate an unsigned Pump sell with exact raw token input, an explicit minimum native-SOL output and fee/rent ceilings.
build_launchprepare
Prepare and simulate a canonical ordinary Pump createV2 launch for explicit local payer-and-mint signing.
launch_eventsread
Read current official Pump CreateEvents from one confirmed transaction, attributed to runtime Pump invocations.
recent_launchesread
Discover launch events in a bounded page of recent transactions referencing the canonical Pump mint authority; this is a paginated scan, not a complete token index.
tokenread
Read on-chain mint state and canonical Pump curve reserves from one Solana snapshot.
pumpswap_poolread
Read verified PumpSwap pool identities and raw vault balances from one Solana snapshot.
bonding_curveread
Read exact raw reserve values from the Pump bonding curve derived from a mint.
Current limitations
  • Reader actions expose the stable reserve prefix; swap actions separately decode complete supported layouts and fee state with official Pump SDK 4.1.0.
  • Reader reserve amounts are raw integer strings and are not executable prices. Use quote with an explicit side and raw base-token amount.
  • Token details contain on-chain mint state and the stable curve prefix, not off-chain names, artwork, or history. Token-2022 extensions are identified but not interpreted.
  • PumpSwap reads verify pool/vault identities and report raw balances from one RPC snapshot. Legacy pools expose only the supported prefix; unknown virtual reserves are null.
  • Swap preparation supports active native-SOL curves, classic SPL and metadata-only Token-2022 mints. Mayhem, cashback, token-paired curves, unsupported token extensions and PumpSwap trading are excluded.
  • Buy requests that reach the remaining curve supply are rejected at preparation. V3 can still enter synthetic migration if reserves change afterward; the encoded maximum SOL cost continues to apply.
  • Buy quotes specify exact tokens out and max SOL in; sell quotes specify exact tokens in and min SOL out. Preparation requires explicit SOL limits plus network-fee and rent ceilings and a successful unsigned simulation.
  • The hosted API never signs or broadcasts. Prepared swaps can use the local tx inspect, wallet sign and tx submit commands. Ordinary createV2 launches require a separate local mint wallet and explicit pump-launch review/signing mode. Discovery scans at most ten recent Pump transactions per page for verified current-IDL CreateEvents; it is not a complete token index or name search.
  • A missing account can indicate the wrong network, an unknown mint, or a removed curve; it does not prove a token is invalid.
Meteora12 actions

Search Meteora pools, quote direct DLMM swaps from on-chain liquidity, and prepare simulated unsigned transactions for local execution.

meteora · runtime schemas
block-cli platforms meteora
block-cli schema meteora quote
quoteread
Quote a full exact-input swap from verified DLMM pool, mint, vault and bin accounts in one RPC snapshot.
build_swapprepare
Prepare and successfully simulate an unsigned exact-input DLMM swap with explicit minimum output and network-fee/rent budgets.
build_buyprepare
Prepare an exact-input purchase of baseMint using quoteMint through the verified DLMM swap path; amount is raw quote-token input.
build_sellprepare
Prepare an exact-input sale of baseMint into quoteMint through the verified DLMM swap path; amount is raw base-token input.
dbc_configread
Read and hash a supported existing DBC launch configuration, including its fee and liquidity recipients.
build_dbc_launchprepare
Prepare and simulate a canonical DBC launch with an approved config hash and explicit local payer-and-mint signing.
positionsread
Discover up to 100 program-owned DLMM position addresses with exact owner and optional pool filters; inspect each position separately.
positionread
Read a verified base PositionV2 account, raw per-bin liquidity shares and recorded pending fees.
build_add_liquidityprepare
Prepare a spot deposit into an existing owned DLMM position, with on-chain token maxima, unchanged active-bin guard and verified simulation.
build_remove_liquidityprepare
Prepare percentage removal from existing owned DLMM bins with on-chain token minima, no claims/closure/resize, and verified simulation.
poolsread
Search indexed Meteora pools with bounded pagination.
poolread
Inspect one indexed Meteora pool by its account address.
Current limitations
  • Swaps and existing-position liquidity support enabled permissionless/customizable DLMM pools and classic SPL Token only. Token-2022, permissioned pools, newer preset-key pools, DAMM v2 trading and DBC launches are not implemented.
  • Liquidity preparation supports existing base PositionV2 accounts, at most 70 bins, initialized bin arrays, spot deposits and percentage withdrawals. No new positions, resize, closure, fee/reward claims, operators or external fee owners.
  • Exact-input quotes use at most four verified liquidity bin arrays. The entire input must fill; partial fills and overlarge single-transaction routes are rejected.
  • Native SOL uses an isolated temporary wrapped-SOL account; the account closes back to the same wallet. Other inputs require the canonical associated token account. Missing output ATAs can be created with an explicit rent budget.
  • The API prepares and simulates only. Local tx inspect, wallet sign and tx submit provide agent-owned signing and execution. Fee/rent ceilings are snapshot checks; the exact input and minimum output are encoded on-chain.
  • DBC launches support existing reviewed native-SOL configurations with immutable fixed-supply Token-2022, constant fees, no transfer fees/hooks or vesting, DAMM v2 migration and at least 10% permanently locked liquidity. Launch preparation requires separate local payer and mint signers; tx inspect --mode meteora-dbc-launch verifies the dedicated policy.
  • Pool market figures are indexed snapshots and must not be treated as executable swap quotes.
  • Public API limits are 30 requests/second for DLMM and 10 requests/second for DAMM v2.
StonkFun12 actions

Discover StonkFun tokens, prepare standard LaunchLab launches and routed Jupiter swaps, and validate unsigned creator fee claims.

stonkfun · runtime schemas
block-cli platforms stonkfun
block-cli schema stonkfun quote
quoteread
Quote buying or selling a StonkFun-indexed token against its recorded quote asset through Jupiter Metis.
build_swapprepare
Prepare an unsigned Jupiter Metis swap for a verified StonkFun-indexed token and its quote asset.
claimableread
Read creator fee estimates, including explicit non-claimable modes and aggregated LaunchLab quote-vault scope.
prepare_claimprepare
Validate and simulate an unsigned sole-wallet StonkFun creator fee claim to existing wallet ATAs.
launch_configread
Read current standard LaunchLab pair, pricing and on-chain fee configuration with an approval hash.
build_launchprepare
Prepare and simulate an untaxed standard StonkFun LaunchLab launch for explicit local payer-and-mint signing.
tokensread
List or search live StonkFun tokens and market data.
tokenread
Read one token and its launch record by mint.
pairsread
List quote tokens and current launch-readiness flags.
launchesread
Read the launch ledger, optionally filtered by creator and time.
recentread
Read recent launches with cursor pagination; the provider window is ten minutes.
statsread
Read platform totals and currently enabled launch features.
Current limitations
  • Launches support the currently enabled standard untaxed LaunchLab mode with separate local payer and mint wallets; no StandardV2, rewards, community mode, vesting or initial buy. The hosted API never signs, submits or holds wallet keys.
  • Launch configuration and curve terms require approval by hash. Platform fees, recipients and liquidity shares come from the current on-chain configuration. Metadata remains controlled by the LaunchLab authority PDA.
  • Swaps use Jupiter Metis for the indexed token and recorded quote asset; available routes and Jupiter API-key requirements apply. Swap instruction semantics require independent review.
  • Creator claim preparation supports only documented direct Raydium CLMM-lock or LaunchLab creator-vault claims, one signer, no lookup tables, and existing wallet output ATAs. Other claim shapes are rejected.
  • Claim minima are provider-estimate checks, not encoded minimums. LaunchLab quote vaults can aggregate multiple launches; forwarded rewards are not claimable.
  • Market values are indexed and may lag on-chain state. Preserve the provider timestamps when consuming results.
  • StonkFun applies per-IP rate limits. The recent feed covers a ten-minute window; use launches for older history.
  • Launch readiness and pricing change over time. Read launch_config and review its economics before preparation; a changed hash requires a new review. On-chain confirmation does not guarantee StonkFun indexing.
Pons v210 actions

Discover current Pons v2 launches, quote active curves, and prepare simulated unsigned launches, buys, sells, exact approvals and escrow claims on Robinhood Chain.

pons · runtime schemas
block-cli platforms pons
block-cli schema pons discovery
discoveryread
Read a bounded, canonical Pons v2 factory launch-event page with a reorg-checkable continuation.
quoteread
Quote an active Pons v2 curve using exact integer reserves, recipient-specific taxes and raw token units.
build_buyprepare
Prepare and simulate a bounded Pons curve buy for the wallet; existing ERC-20 allowance is required for custom pairs.
build_sellprepare
Prepare and simulate a Pons curve sale with exact token input and minimum proceeds; allowance must already be confirmed.
prepare_approvalprepare
Prepare an exact Pons curve token allowance, or explicit zero reset, as a separate locally signed transaction.
claimableread
Read the current Pons v2 escrow ledger for one wallet and native ETH or one ERC-20 asset.
build_claimprepare
Prepare and simulate claiming the wallet’s current Pons v2 escrow balance to the same wallet.
launch_configread
Read a Pons launch configuration and current launch fee at one block.
tokenread
Resolve a token through the current Pons v2 factory.
prepare_launchprepare
Prepare and simulate serialized unsigned Pons launch bytes with pinned economics, launch fee and network fee ceilings.
Current limitations
  • Only the current v2 factory is covered; v1 tokens are not included.
  • Discovery is a bounded factory-event page, not a complete indexed history. Only active v2 curves trade; graduated Uniswap v4 routes are excluded.
  • Only agent-owned EOA wallets are supported. Preparations contain simulated unsigned bytes for local inspection, signing and submission; the hosted API never holds keys or broadcasts.
  • ERC-20 approvals are separate exact-amount transactions. Confirm each approval before preparing the trade; existing nonzero allowances require an explicit zero reset.
  • Buys may partially fill near graduation. The contract enforces a minimum output rate rather than an absolute quantity. Individual fee/tax ceilings and claim minima are preparation-time checks.
  • A signer must independently verify the chain, factory, metadata, fees and calldata before signing.
Hyperliquid Perps13 actions

Read Hyperliquid perpetual markets, spot balances, accounts and order status; locally sign and submit prepared orders, cancellations, leverage, isolated margin changes and direct spot/perp USDC transfers.

hyperliquid · runtime schemas
block-cli platforms hyperliquid
block-cli schema hyperliquid prepare_usd_class_transfer
prepare_usd_class_transferprepare
Prepare an exact direct-account USDC transfer between HyperCore spot and default perpetual balances. Separate user EIP712 signature; no external recipient or bridge withdrawal. Exchange expiry is unsupported.
spot_balancesread
Read provider-reported HyperCore token balances for spot/perp transfer reconciliation, including unified/portfolio account balances. Does not calculate transferable collateral or prove a particular transfer.
marketsread
List default perpetual market metadata with mark/oracle prices, current funding, and open interest.
orderbookread
Read up to 20 bid/ask price levels for a verified default perpetual market.
funding_historyread
Read hourly funding records for one default perpetual market in a time window of at most 30 days.
accountread
Read default perpetual positions and clearinghouse margin for a master or subaccount address.
open_ordersread
Read bounded open default perpetual orders; excludes spot orders and HIP-3 markets.
order_statusread
Reconcile one default perpetual order by exact exchange order ID or client order ID. unknownOid does not establish that a submission failed.
user_fillsread
Read recent default perpetual fills within at most seven days; excludes spot and HIP-3 fills.
prepare_isolated_marginprepare
Prepare an exact signed USD margin addition/removal for one default perpetual isolated position. Direct account only; does not verify available margin or submit.
prepare_orderprepare
Prepare one unsigned default-perpetual limit order with exact price/lot validation and an explicit limit-price notional ceiling. Agent signs externally; no order is placed.
prepare_cancelprepare
Prepare an unsigned cancellation for one default-perpetual order ID. Does not assert order ownership or existence and does not submit the cancellation.
prepare_leverageprepare
Prepare an unsigned cross/isolated leverage update bounded by current market maximum leverage. Does not change leverage or verify account-specific margin constraints.
Current limitations
  • Direct master accounts only. The hosted API prepares unsigned actions; local CLI hyperliquid inspect/sign/submit signs L1 trading/margin actions and separate user EIP712 spot/perp USDC transfers. No hosted signing/submission, spot/HIP-3 trading, API-wallet delegation, vault/subaccount execution, external deposits, or bridge withdrawals.
  • Limit-order preparation validates exact tick/lot precision and limit price times size against maxNotionalUsd. It does not verify margin, positions, minimum order value, account eligibility, order ownership, or exchange acceptance. Sell fills can have higher notional than limit price times size; fees and funding are excluded.
  • Allocate unique signer nonces atomically in the agent runtime. The API does not reserve them. expiresAfter limits submission time and does not cancel an accepted resting order. Preserve returned action field order and decimal strings when signing with the official SDK.
  • USDC class transfers have no exchange-enforced expiry and require explicit acknowledgment. Local freshness checks cannot make a signed transfer expire on the exchange. Both transfer and isolated margin signing require an independent maximum collateral-change limit; balances and account eligibility are not established by preparation.
  • Use the actual master or subaccount address, not an agent signer address. Account endpoints do not independently prove address ownership.
  • Clearinghouse margin is not a complete unified-account or portfolio-margin balance; spot_balances reads the corresponding spotClearinghouseState. Reads are provider snapshots, not independent confirmation that a specific transfer executed.
  • Market snapshots are not executable quotes. No eligibility, jurisdiction, or liquidation-risk determination is performed.
  • Fills are limited by the provider to 2000 records per response and the latest 10000 fills; pagination cannot guarantee complete history, especially when many fills share a timestamp.
Jupiter Perps11 actions

Read Jupiter perpetual markets and positions; prepare verified mainnet market requests, bounded collateral funding swaps, fixed-notional TP/SL, owner cancellations and dedicated keeper-cosigned limit entries.

jupiter_perps · runtime schemas
block-cli platforms jupiter_perps
block-cli schema jupiter_perps build_increase_with_swap
build_increase_with_swapprepare
Prepare a wallet-only market-increase/deposit request with exact input and a signed minimum collateral swap output. Keeper swap and position fulfillment occur later.
build_tpslprepare
Prepare and simulate a fixed-notional take-profit or stop-loss request for an open position. Trigger price is not an execution-price guarantee; explicit acknowledgement required.
build_increaseprepare
Prepare and simulate a wallet-only Solana mainnet market increase/open request or collateral deposit; direct long-asset/short-USDC collateral only. Keeper fulfillment is separate.
build_decreaseprepare
Prepare and simulate a wallet-only Solana mainnet market reduction/full-close request or collateral withdrawal. Same-collateral proceeds; keeper fulfillment is separate.
request_statusread
Read and verify an onchain Jupiter position request owned by the wallet. Missing/closed accounts are unknown, never proof of execution.
build_cancel_requestprepare
Prepare owner cancellation of a direct-collateral or not-yet-swapped bounded funding request. Refunds only its owner; verifies request/escrow close and unchanged position.
build_limitprepare
Prepare and verify a same-collateral Jupiter limit-entry transaction with an existing API-keeper signature. Requires the dedicated local partial-sign and co-sign flow, never generic sole-signer execution.
market_statsread
Read a SOL, ETH, or BTC perpetual market price, 24-hour change, range, and volume.
pool_inforead
Read indicative long/short available liquidity, utilization, and borrow and open fee rates for one perpetual market.
jlp_inforead
Read Jupiter-reported JLP AUM, supply, APR/APY, and token custody inventory without rounding raw amounts.
positionsread
Read currently open positions and existing TP/SL requests for a Solana wallet; PnL and liquidation values are provider estimates.
Current limitations
  • Preparation supports market open/increase, reduce/full-close, direct collateral changes, bounded funding swaps, fixed-notional TP/SL, owner request cancellation and same-collateral limit entries. Positions retain long same-asset collateral or short USDC. Funding swaps accept SOL/ETH/BTC/USDC with a signed minimum target collateral output; keeper swap/fulfillment are separate. No existing-position collateral conversion, output swaps, USDT shorts, entire-future-position TP/SL, instant market execution, leverage autosizing, wallet signing or broadcasts in the hosted API.
  • Limit entries use a separate jupiter-perps inspect/sign/submit/status flow with exact oracle/transaction verification, a pinned API-keeper signature and local owner partial signing. Submit calls the official co-sign-and-broadcast service. The trigger threshold is not a guaranteed fill price; allowUnboundedExecutionPrice acknowledgment is mandatory. Preparations expire quickly. Native SOL funding rejects nonzero existing WSOL accounts because the provider closes its funding ATA.
  • TP/SL trigger thresholds are not execution-price guarantees. Explicit allowUnboundedExecutionPrice acknowledgment is required; signed size is fixed, with no automatic expansion if the position grows. Cancellations can race keeper execution and market-request cancellation may be delayed by protocol timing rules. Pending funding swaps refund their input token only before an intermediate swap is recorded; partially progressed swaps require reconciliation.
  • A confirmed request transaction is not a filled position. Keeper execution may reject or expire; absent request accounts cannot distinguish execution from rejection. Rent and fee caps are checked against current RPC state, not enforced by an onchain guard.
  • Data is reported by Jupiter Perps API v2; account ownership, oracle inputs, PnL, and liquidation estimates are not independently recomputed or verified onchain.
  • The provider exposes no common block slot or snapshot guarantee. Market statistics, liquidity, and positions may reflect different update times.
  • Prices, borrow rates, liquidity, APR/APY, and estimated PnL are indicative snapshots, not executable quotes or guaranteed returns.
  • Positions returns currently open positions only, with up to 100 positions and 100 TP/SL requests per position; unexpected or changed schemas fail closed.
Jupiter DEX5 actions

Jupiter token discovery, indexed USD prices, and exact-input Metis quotes and unsigned V0 swap orders through the current Swap API V2.

jupiter · runtime schemas
block-cli platforms jupiter
block-cli schema jupiter token_search
token_searchread
Search Jupiter token metadata by name, symbol or mint; returns up to 20 indexed results.
tokenread
Read indexed Jupiter metadata for one exact mint address.
pricesread
Get indexed USD prices for up to 50 exact mint addresses; unavailable prices are listed separately.
quoteread
Get a fresh exact-input Metis quote with explicit slippage and token-fee ceilings. Amounts are raw integer strings.
build_swapprepare
Fetch a fresh Metis order and return an unsigned V0 swap for the wallet as sole signer, subject to token and reported network-fee ceilings.
Current limitations
  • Solana mainnet only. Keyless Jupiter requests share a 0.5 RPS upstream limit; configure JUPITER_API_KEY for production quotas. Rate limits surface as retryable errors.
  • Token metadata, verification labels and prices come from Jupiter indexing; they do not establish legitimacy or execution prices. Missing prices are explicit.
  • Quotes and builds use Metis only. JupiterZ RFQ, Dflow, OKX, gasless sponsorship, alternate recipients, referral fees and transaction V1 are unsupported.
  • Slippage is capped at 500 bps. Returned token fees must respect maxPlatformFeeBps; builds additionally check reported signature, priority/tip and rent fees against maxNetworkFeeLamports.
  • Nonzero explicit platformFee.amount responses fail closed because the current V2 quote documentation does not specify their exact calculation basis and rounding. The verified Metis response path omits that field.
  • Transaction validation covers structure, V0 version, requested fee payer, one signer and empty signatures only. Instruction semantics and lookup-table contents are not audited.
  • An external signer must resolve lookup tables, decode every instruction, verify all amounts, recipients, programs and fees, and simulate a fresh transaction before signing. Preparation does not reserve funds or guarantee execution.
  • Never signs or submits. Limit orders, recurring orders and managed execution are not implemented.
Relay7 actions

Relay discovery, exact-input quotes, unsigned native and token bridge deposits, explicit ERC-20 approval stages, and intent status.

relay · runtime schemas
block-cli platforms relay
block-cli schema relay chains
chainsread
List Relay mainnet chain metadata and availability flags; inclusion does not guarantee an executable bridge route.
currenciesread
Search Relay currency metadata by chain and symbol or exact address; token verification and route eligibility are provider-reported.
statusread
Read Relay request status, including delays, failure and refund outcomes; success is Relay-reported and not independently verified onchain.
quoteread
Get a cross-chain exact-input quote for supported EVM and Solana routes. Amounts are raw integer strings; no transaction is returned.
prepare_bridgeprepare
Prepare a fresh unsigned native EVM bridge deposit, binding canonical calldata to verified Relay order terms. Requires an external wallet to simulate, sign and submit.
prepare_bridge_solanaprepare
Prepare a fresh unsigned V0 native SOL deposit for Relay bridging to Ethereum, Base, BNB or Robinhood. Verifies the protocol order, deposit instruction, canonical program accounts and network fee; the local wallet signs and submits.
prepare_bridge_tokenprepare
Prepare a verified classic SPL deposit or a standard ERC-20 bridge stage. ERC-20 approvals and resets are separate local transactions; confirm each before rebuilding the deposit. No signing or broadcast.
Current limitations
  • Quote routes are limited to Ethereum (1), Base (8453), BNB (56), Robinhood (4663) and Solana (792703809); origin and destination must differ. Route and token availability depend on Relay.
  • Exact-input quotes only, with at most 500 bps slippage and no application fees. Currency and chain discovery may return providers beyond the executable route allowlist.
  • Native SOL/EVM deposits use dedicated actions. prepare_bridge_token supports classic SPL deposits and standard ERC-20 deposits with separate exact-approval/reset stages. No Token-2022, wrapped SOL token deposits, permits, deposit addresses or arbitrary calls.
  • SPL token preparation verifies canonical accounts, exact simulated token movements, fee and rent limits. ERC-20 preparation checks pending allowance/balances and simulates the selected stage; transfer effects of nonstandard tokens cannot be proven by eth_call. Confirm each approval and obtain a fresh deposit quote.
  • Order V1 terms, settlement recipient, minimum output, origin refund availability and beneficiaries, canonical settlement contracts, recomputed order ID, canonical depository, payer and exact deposit calldata are checked. Native SOL additionally verifies the mainnet genesis, program/config/vault owners and PDAs, exact deposit instruction, sole signer, blockhash and network fee. No wallet balance check or transaction simulation is performed.
  • maxGasFeeAmount bounds provider and RPC network fees for SOL (lamports), or provider gas and gas × maxFeePerGas for EVM. SOL transactions use fresh unsigned V0 messages without lookup tables or account creation. L2 fees and external wallet changes require additional checks.
  • Configure server-side RELAY_API_KEY for authenticated production access. Relay documents mandatory quote keys; missing or rejected keys can make otherwise supported quotes unavailable.
  • No signing, broadcasting, automatic recovery or guaranteed settlement. An external wallet must validate, simulate and execute fresh transactions. Relay status is provider-reported.
Long9 actions

Read the verified Long launcher and prepare an explicit creator-fee launch profile on Robinhood Chain, subject to the on-chain pause gate.

long · runtime schemas
block-cli platforms long
block-cli schema long prepare_launch
prepare_launchprepare
Prepare a simulated unsigned Long creator-fee launch with pinned modules and explicit curve/fee parameters; fails while the launcher is paused.
quoteread
Quote a proven Long pool using the deployed Uniswap v4 quoter, including hook fees and exact raw-unit slippage floor.
prepare_approvalprepare
Prepare an exact ERC-20 or short-lived Permit2 allowance, reset or revocation for the pinned Long swap router.
build_swapprepare
Prepare and simulate a Long v4 trade with explicit maximum input, minimum output, deadline and existing confirmed approvals.
build_buyprepare
Prepare a Long token purchase using its original stock-token quote asset.
build_sellprepare
Prepare a Long token sale into its original stock-token quote asset.
protocolread
Verify the deployed Long launcher and read its pinned dependencies, pause state and ticker rules.
tickerread
Read a normalized Long ticker reservation at one canonical block; availability is not a reservation.
discoveryread
Read at most 200 canonical Long launch events in a bounded block window with a reorg-aware cursor.
Current limitations
  • Only the verified LongLauncher deployment is covered. Discovery is a bounded event page, not a complete indexed token directory.
  • Ticker availability is a snapshot and can change before a launch. Reservations last 24 hours and do not establish ownership or legitimacy.
  • Launch preparation uses an explicit creator-fee profile and pinned module runtimes, not the current app preset. It fails while paused. Existing locked pools can be quoted and traded through the pinned v4 router with separate exact approvals.
  • Direct Long trades support proven launcher tokens in locked Doppler hook pools with original active Robinhood stock-token quote assets. Native ETH routing, migrated pools and other quote assets are excluded. Amounts are raw ERC-20 units; displayed shares use a separate multiplier.
  • Observed L2 state is not a verification of Ethereum L1 finality.

Authentication & predictable errors

#

Supply the gateway access key as Authorization: Bearer …. The CLI reads it from AGENT_CRYPTO_API_KEY and does not save credentials. The operator assigns read, prepare, and simulate scopes per key. Provider credentials, such as the Relay API key, are configured separately on the gateway.

BLOCK CLI retains the existing AGENT_CRYPTO_* configuration names so current agent integrations keep working.

Machine-readable responses

Ordinary CLI commands print one JSON envelope to stdout and exit 0. Failures print an error envelope to stderr and exit nonzero. --help prints plain text; mcp runs a persistent stdio protocol server. The HTTP API uses these envelopes, except /openapi.json, which returns the OpenAPI document directly.

Success envelope
{"ok":true,"data":{"example":"result"},"requestId":"gateway-request-id"}
Error envelope
{
  "ok": false,
  "error": {
    "code": "SCOPE_DENIED",
    "message": "This action requires the prepare scope.",
    "retryable": false
  },
  "requestId": "gateway-request-id"
}
ErrorAgent response
UNAUTHORIZEDCheck the gateway access key.
SCOPE_DENIEDUse a key authorized for the action’s scope.
INVALID_INPUTFetch the current schema and correct parameters.
UNSUPPORTED_ACTIONRefresh the catalog; do not invent a method.
RATE_LIMITEDWait at least 60 seconds before a bounded retry.

Retry only errors marked retryable: true, with bounded backoff. Preserve requestId for diagnostics; local CLI failures may omit it. The CLI has a 35-second request timeout, a 256 KiB parameter limit, and a 4,000,000-byte response limit. Per-key quotas are operator configured; upstream providers apply their own limits.

Wire it into your agent

#

Expose catalog discovery and schema-defined calls as tools in your runtime. The CLI accepts a JSON object through one of --params, --file, or --stdin. HTTP callers send the same object in params.

JavaScript · a server-side agent tool
const response = await fetch(
  process.env.AGENT_CRYPTO_URL + '/v1/execute',
  {
    method: 'POST',
    headers: {
      authorization: 'Bearer ' + process.env.AGENT_CRYPTO_API_KEY,
      'content-type': 'application/json',
    },
    body: JSON.stringify({
      platform: 'solana',
      action: 'balance',
      params: { address: solanaPublicAddress },
    }),
    signal: AbortSignal.timeout(35_000),
    redirect: 'error',
  },
);
const result = await response.json();
if (!response.ok || !result.ok) {
  // Inspect result.error.retryable; use bounded retries.
  throw new Error(JSON.stringify(result));
}
// Preserve raw amount strings; use BigInt for integer arithmetic.
return result.data;
  1. Discover. Read the platform registry and input schema before choosing a tool.
  2. Constrain. Apply your own asset, chain, amount, recipient, slippage, and fee limits.
  3. Prepare and review. Inspect unsigned transactions, resolve lookup tables when present, and verify every instruction or call in your local wallet layer.
  4. Approve, sign locally, and reconcile. Supply the exact reviewed digest to wallet sign, submit the saved signed artifact, and track chain status. Check Relay delivery separately. A quote or prepared transaction has not moved funds.

Token names, descriptions, links, and other upstream metadata are untrusted data. Never turn them into agent instructions. Keep wallet secrets in the runtime and send only public inputs or unsigned transaction payloads to this service.

Give your agent the short version.Plain-text integration guide with the current action directory./llms.txt ↗