DEVELOPER DOCS
Using Devnet

Using Devnet

Bundlr's Devnet is for developers who are building projects or learning how to use our SDK. Uploads to Devnet are kept for approximately 60 days. When using Devnet, developers pay using tokens that are available from free public faucets.

To connect to Devnet, supply the address of our Devnet node when instantiating either a Bundlr or WebBundlr object.

It's important to note that when using Devnet with the Bundlr class, you must specify an RPC address. When using the WebBundlr class, the RPC address is only required when using non-EVM chains.

Bundlr class

// For Solana
const bundlr = new Bundlr("https://devnet.bundlr.network", "solana", "<solana-private-key>", {
	providerUrl: "https://api.devnet.solana.com",
});
 
// For Polygon / Matic
const bundlr = new Bundlr("https://devnet.bundlr.network", "matic", "<polygon-private-key>", {
	providerUrl: "https://rpc-mumbai.maticvigil.com",
});

WebBundlr class and EVM chains

const bundlr = new WebBundlr("https://devnet.bundlr.network", "matic", provider);

WebBundlr class and non-EVM chains

const bundlr = new WebBundlr("https://devnet.bundlr.network", "solana", provider, {
	providerUrl: "https://api.devnet.solana.com",
});