OVERVIEW
Supported tokens

Tokens

Iyrs supports most poppular tokens for paying for uploads.

Mainnet tokens

On Nodes 1 and 2 can pay for uploads in any of these tokens:

Token / BlockchainTokenParameter ValueIrys SupportWebIrys Support
AptosAPTaptosyesyes
AlgorandALGOalgorandyesno
ArbitrumETHarbitrumyesyes
ArweaveARarweaveyesno
Avalanche C-ChainAVAXavalancheyesyes
Binance CoinBNBbnbyesyes
BobaBOBAbobayesyes
Boba-ethETHboba-ethyesyes
ChainlinkLINKchainlinkyesyes
EthereumETHethereumyesyes
Base EthereumETHbase-ethyesyes
Linea EthereumETHlinea-ethyesyes
Scroll EthereumETHscroll-ethyesyes
FantomFTMfantomyesyes
IoTeXIoTeXiotexyesyes
NearNEARnearyesyes
PolygonMATICmaticyesyes
SolanaSOLsolanayesyes
USDC (on Ethereum)USDCusdc-ethyesyes
USDC (on Polygon)USDCusdc-polygonyesyes

Specifying token

To use a different token, link your private key and supply the token name when creating a new Irys object. The accepted values for token are listed in the third column of the tables above.

Example:

const getIrys = async () => {
	const network = "mainnet";
	// Optional RPC URL
	const providerUrl = "";
	const token = "ethereum";
 
	const irys = new Irys({
		network, // "mainnet" 
		token, // Token used for payment
		key: process.env.PRIVATE_KEY, // ETH or SOL private key
		config: { providerUrl }, // Optional RPC URL
	});
	return irys;
};