easyway
Sign inCreate free account

Accept API3 payments

API3 is the governance token of the API3 DAO, the project behind first-party data feeds for smart contracts: price and other data published on-chain by oracle nodes that the data providers run themselves. easyway accepts the ERC-20 API3 on Ethereum through the same checkout and API as ETH and the stablecoins. This page lists the exact contract, the API3 balances that cannot pay an invoice, what a payment costs and how to integrate it.

Token, network and limits

TokenNetworkContractConfirmationsMin. withdrawalWithdrawal fee
API3 (API3)Ethereum · ERC-200x0b38210ea11411557c13457D4dA7dC6ea731B88a123 API310 API3 (flat)

This is the contract that api3.org links to on Etherscan, and Trust Wallet's token list and CoinGecko have the same address. It has 18 decimals. It is a plain token contract, not an upgradeable proxy, it cannot be paused, and transfers have no fee, so the amount the customer sends is the amount that arrives. A transfer to a new address costs about 52,000 gas, and the flat withdrawal fee covers it.

Staked and bridged API3 can't pay an invoice

Many holders keep API3 staked in the API3 DAO pool, which is how the DAO votes. Staked tokens are held by the pool contract, not by the holder's address, so they cannot be sent to a checkout; the holder unstakes under the pool's rules first. API3 can also appear as bridged copies on other networks, each with its own contract.

The checkout gives an Ethereum address, and only API3 sent on Ethereum from the contract above is credited. When paying from an exchange, the customer chooses API3 on Ethereum (ERC-20) in the withdrawal form; the guide to paying from an exchange shows the steps.

Amounts and fees

For a USD invoice the API3 amount is fixed from the exchange rate at the moment the customer picks the coin, and the checkout shows the exact figure. A single transfer below 0.05 API3 is ignored as dust, and the invoice is paid after 12 Ethereum confirmations, usually a few minutes. Short or late payments are handled as in the underpaid and late payments guide.

API3 is volatile, and it stays API3: it is credited and withdrawn in API3, so any price move after the payment is yours. The platform fee is a flat 0.5% of each confirmed payment, so 1,000 API3 received leaves 995 API3 on your balance. A withdrawal costs a fixed 10 API3 to cover the Ethereum gas of one token transfer, and the smallest withdrawal is 3 API3. All coins are compared on the pricing page.

Integrating

There is no API3-specific code. Create an invoice with the API (or a payment link without code), redirect the customer to the hosted checkout and fulfil the order when the signed invoice.paid webhook arrives. To price the invoice in API3, pass currency = "API3_ERC20"; to offer only API3, pass allowed_assets with "API3_ERC20" (see limiting the checkout to some coins). The quickstart has runnable examples.

Common questions

Does easyway use API3 price feeds? No. easyway is independent of the API3 DAO and does not read its feeds; it only receives the ERC-20 API3 token on Ethereum as payment for your own goods or services, and it does not convert payments into other coins.

Where is the API3 kept after a payment? On your easyway balance until you withdraw it, and live withdrawals only go to addresses you whitelisted with two-factor authentication (see security). Other oracle tokens you can accept are Chainlink (LINK) on Ethereum and Pyth Network (PYTH) on Solana.

Create free accountRead the API docsAlready have an account? Sign in
Accept API3 payments on Ethereum (ERC-20) | easyway