Quickstart
Install our SDK and upload data to the permaweb in just a few steps. For full details on each function see our SDK documentation.
Prerequisites
To install our SDK, make sure you have a current version of node (opens in a new tab) installed first.
🚀
We also have a detailed step-by-step tutorial covering this same material.
1: Install the SDK
via npm
npm install @bundlr-network/client
or yarn
yarn add @bundlr-network/client
2: Connect To A Bundlr Node
const polygonPrivateKey = "6d779d4..."; // your private key
const bundlr = new Bundlr("http://node2.bundlr.network", "matic", polygonPrivateKey);
3: Fund Your Node (To Pay For Uploads)
const response = await bundlr.fund(fundAmount);
4: Upload Data
const dataToUpload = "GM world.";
const response = await bundlr.upload(dataToUpload);
Step 5: Download Your Data
console.log(`Data Available at => https://arweave.net/${response.id}`);