Skip to main content
The Amplify SDK wraps several REST API endpoints and on-chain reads behind convenient functions like getVaultAPY() and getWithdrawalRequests(). When integrating directly, you call these yourself. This page covers every read-only operation the SDK provides, with the raw API calls and contract reads you need.
All REST API endpoints require an API key passed via the x-api-key header. Contact Paxos Labs to get one. See the API Reference for full endpoint documentation including pagination, filtering, and response schemas.

Account Discovery

The SDK’s getVaultsByConfig() and getSupportedAssets() are powered by a GraphQL API. For direct integrations, use the REST endpoint GET /v2/amplify/vaultAssets instead.

List All Accounts

Response shape:
The tokenMetadata map is keyed by chainId:address and provides symbol, name, and decimals for each token — so you don’t need separate on-chain calls to resolve token info.

Withdraw-Eligible Assets

To find which assets support withdrawals for a specific account, filter the vaultAssets endpoint by withdrawable=true:

Account APY

Equivalent to SDK’s getVaultAPY(). Uses GET /v2/amplify/vaultApys.
The apy field is a decimal (e.g., 0.0523 = 5.23%). Multiply by 100 to display as a percentage.

Account TVL

Equivalent to SDK’s getVaultTVL(). Uses GET /v2/amplify/vaultTvls.

Withdrawal Request History

Equivalent to SDK’s getWithdrawalRequests(). Uses GET /v2/amplify/withdrawalRequests.

Status Values


Token Balances

Read ERC-20 token balances directly from the blockchain. Equivalent to the SDK’s internal getErc20Balance().

Allowance Checking

Equivalent to SDK’s isDepositSpendApproved() and isWithdrawalSpendApproved().

Exchange Rate

The Accountant contract tracks the exchange rate between account shares and the underlying asset. Equivalent to SDK’s internal getRateInQuoteWithAssetDecimals(). You must pass the quote asset address (e.g., USDC) to get the rate denominated in that asset.

Withdrawal Fees

Equivalent to SDK’s getWithdrawalFee(). Reads from the WithdrawQueue’s FeeModule on-chain.

Pause State

Before submitting transactions, check whether the account is paused. Equivalent to SDK’s internal getPausedStates().
If the Teller is paused, deposit and withdrawal transactions will revert. Check pause state before submitting transactions in production.

SDK-to-Direct Mapping Reference


Next Steps