easyway
Sign inCreate free account

Accept Basic Attention Token (BAT) payments

BAT is the token of the Basic Attention Token project, best known from the Brave browser's rewards program. easyway accepts BAT as an ERC-20 on Ethereum with the same checkout and API as ETH and the stablecoins. Below: the one contract that counts, the bridged copies that don't, and the numbers.

Token, network and limits

TokenNetworkContractConfirmationsMin. withdrawalWithdrawal fee
BAT (Basic Attention Token)Ethereum · ERC-200x0D8775F648430679A709E98d2b0Cb6250d2887EF125 BAT16 BAT (flat)

This is the address printed in the FAQ on basicattentiontoken.org, and CoinGecko and Trust Wallet's token list give the same one. It is a plain ERC-20 from 2017 with 18 decimals and a fixed supply of 1.5 billion BAT. It is not an upgradeable proxy and takes no fee on a transfer, so the amount the customer sends is the amount that arrives.

One original, several bridged copies

Over the years BAT was bridged to other chains. Each copy has its own contract (or mint) address, and none of them is the Ethereum token. An easyway deposit address is the same on every EVM chain, so a wallet set to Polygon or Avalanche will accept the invoice address and send the bridged token without a warning:

Where the BAT is sentTokenCredited?
Ethereum (ERC-20)0x0D8775F648430679A709E98d2b0Cb6250d2887EFYes
Polygon, AvalancheBridged copy, different contractNo
Solana, NEAR and othersBridged copy, not an Ethereum addressNo

Tokens sent on another chain stay at that chain's copy of the deposit address and the invoice stays open. Ask customers to pick BAT on Ethereum (ERC-20). Wherever their BAT is held now (an exchange, a browser wallet or a rewards partner), the withdrawal form decides the network, and the guide to paying from an exchange shows where that choice is made. Moving BAT back to Ethereum is the customer's step, not the checkout's.

Amounts and fees

On a USD invoice the BAT amount is locked from the exchange rate when the customer selects the coin, and the checkout shows the exact amount to send. Transfers under 0.1 BAT are skipped as dust; several larger ones add up, and the invoice is paid after 12 confirmations, usually a few minutes. Short or late payments follow the underpaid and late payments guide.

BAT is not a stablecoin: the payment is credited and later withdrawn in BAT, so later price moves are yours. The platform fee is a flat 0.5% of each confirmed payment: 100 BAT received leaves 99.5 BAT on your balance. A withdrawal costs a fixed 16 BAT, which covers the Ethereum gas of one token transfer, so withdraw in larger batches rather than many small ones. Every coin's numbers are on the pricing page; how they compare with other gateways is in crypto payment gateway fees, compared.

Integrating

Nothing is BAT-specific: create an invoice with the API (or a payment link if you don't write code), send the customer to the hosted checkout and deliver when the signed invoice.paid webhook arrives. To price an invoice in BAT itself, pass currency = "BAT_ERC20"; to show only BAT at checkout, pass allowed_assets with "BAT_ERC20" (see limiting the checkout to some coins). Runnable examples are in the quickstart.

Common questions

Is easyway connected to Brave or the BAT project? No. easyway is independent; it only receives the BAT token on Ethereum as a payment for your own goods or services.

Where is the BAT kept after a payment? On your easyway balance until you withdraw it. Live withdrawals only go to addresses you whitelisted with two-factor authentication; see security. Other long-standing Ethereum tokens on easyway include Chainlink (LINK) and Decentraland (MANA).

Create free accountRead the API docsAlready have an account? Sign in
Accept Basic Attention Token (BAT) payments | easyway