Build
ONCHAIN STORAGE
Features
Supported Tokens

Supported Tokens

Iyrs supports most popular tokens for paying for uploads.

On our testnet, you can pay for uploads in any of these tokens:

Token / BlockchainTokenParameter ValueIrys SupportWebIrys Support
AptosAPTaptosyesyes
AlgorandALGOalgorandyesno
ArbitrumETHarbitrumyesyes
Avalanche C-ChainAVAXavalancheyesyes
BerachainBERAberayesyes
Binance CoinBNBbnbyesyes
BobaBOBAbobayesyes
Boba-ethETHboba-ethyesyes
ChainlinkLINKchainlinkyesyes
EclipseETHeclipseyesyes
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

The token is set when creating a new Irys or WebIrys object, the accepted values are listed in the third column of the table above.

Example:

const getIrys = async () => {
	const network = "testnet";
	// RPC URLs change often, use a recent one from https://chainlist.org/
	const providerUrl = "";
	const token = "ethereum";
 
	const irys = new Irys({
		network, 
		token, // Token used for payment
		key: process.env.PRIVATE_KEY, // ETH or SOL private key
		config: { providerUrl }, // Optional provider URL, only required when using Devnet
	});
	return irys;
};