Skip to main content
The API Calldata path lets you prepare Amplify transactions with plain HTTP requests. The server handles ABI encoding, address resolution, and contract selection — you get back a transaction object ready to sign and broadcast from any language or platform.
This path is ideal when you want server-side calldata generation without managing ABIs or contract addresses locally. For a TypeScript SDK with built-in wallet integrations, see the SDK path. For full control over contract calls, see Direct Contract Integration.
Using an AI coding assistant? Paste the Calldata AI Reference into Cursor, Copilot, or Claude for a condensed single-page reference. Skill-aware tools (Claude Code, Cursor, Windsurf) auto-discover the amplify-earn-api-calldata Agent Skill at /.well-known/agent-skills/index.json.

When to Use This Path

  • Server-side transaction builders — construct deposit/withdraw transactions from a backend in any language
  • Custodial wallets and multisig services — fetch calldata via API, then route to your signing infrastructure
  • Non-JS stacks — Python, Go, Rust, or any HTTP client; no npm packages required
  • Prototyping — test the full deposit/withdraw flow with curl before writing application code

Prerequisites

  • A Paxos Labs API key (format: pxl_<public_id>_<secret>)
  • An EVM wallet or signer capable of submitting raw transactions
  • An HTTP client (curl, fetch, requests, etc.)

Endpoints at a Glance

Transaction Preparation

EndpointDescription
GET /v2/core/permitDetect authorization method (permit / approval / already approved)
GET /v2/amplify/depositPrepare deposit calldata
GET /v2/amplify/withdrawPrepare withdrawal order calldata
GET /v2/amplify/withdraw/cancelPrepare cancel-withdrawal calldata

Discovery

EndpointDescription
GET /v2/amplify/vaultsAccounts grouped by name with per-chain deployments, contract addresses, per-asset deposit/withdraw flags, fees, SLAs, and supply caps

Display Helpers

EndpointDescription
GET /v2/amplify/calculateWithdrawalFeeWithdrawal fee preview

Getting Started

Authentication & Response Formats

API key usage, base URL, response format options, and error handling.

Account Discovery

Find available accounts and their contract addresses, fees, and supported assets.

Deposits

End-to-end deposit flow: authorize, prepare calldata, sign and submit.

Withdrawals

Prepare and submit withdrawal orders via API.

Cancellations

Cancel pending withdrawal orders.

Display Helpers

Read deposit caps, supply, fees, and share values via API.

Learning Path

  1. Authentication — Set up your API key and understand response formats
  2. Discovery — Find the right account and its contract addresses
  3. Deposits — Execute your first deposit
  4. Withdrawals — Submit withdrawal orders
  5. Cancellations — Cancel pending withdrawals
  6. Display Helpers — Read account state for your UI