Skip to main content

Devnet

Bundlr has a devnet which allows you to use devnet/testnet cryptocurrency networks to pay for storage. The devnet node behaves exactly as a mainnet node - other than data is never moved to Arweave and will be cleared from Bundlr after a week.

How to use

In order to use the devnet, you need to use https://devnet.bundlr.network as the node and set the provider url to a correct testnet/devnet RPC endpoint for the given chain.

note

The devnet node is setup to use testnet RPCs, except for Solana where the devnet RPC is used

When creating an instance of Bundlr or WebBundlr you must provide a correct testnet RPC. For example, with Solana:

const bundlr = new Bundlr("https://devnet.bundlr.network", "solana", "<private-key>", { providerUrl: "https://api.devnet.solana.com" });

When working with smart contract tokens (e.g. ERC20s) you need to pass in the correct testnet contract address. For example with Chainlink:

const bundlr = new Bundlr(
"https://devnet.bundlr.network",
"chainlink",
"<private-key>",
{
providerUrl: "<rinkeby-rpc>",
contractAddress: "0x01BE23585060835E02B77ef475b0Cc51aA1e0709"
}
);