1.0.0 • Published 2 years ago

bundlr-boba-client v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Bundlr Boba Client

A browser client for uploading data to the Bundlr.Network with fees paid in Boba/Ether.

Usage

Instantiate an ethers web3provider

Create a new client and connect:

 const bundlr = new BundlrBobaClient("https://node1.bundlr.network", provider);

await bundlr.connect()

Retrieve an account's balance with the bundlr node:

bundler.getBundlrBalance(web3.account)

Fund an account on the bundlr node:

bundler.fundBobaEther(BigNumber.from(100000))

Upload data to the bundlr network

const res = await bundler!.uploadItem(img);
console.log(res);

See API Reference for full documentation