Closed pashupatisah112 closed 1 year ago
import { providers } from "ethers"; import { WebBundlr } from "@bundlr-network/client";
const provider = new providers.Web3Provider(window.aptos) const bundlr = new WebBundlr( "https://node2.bundlr.network", "aptos", provider ); await bundlr.ready();
This is my code. Ethers does not support aptos. Throws following errors:
What to use instead of ethers?
To use Aptos with WebBundlr, you need to: const provider = window.aptos; await provider.connect() then your code as normal
const provider = window.aptos; await provider.connect()
import { providers } from "ethers"; import { WebBundlr } from "@bundlr-network/client";
const provider = new providers.Web3Provider(window.aptos) const bundlr = new WebBundlr( "https://node2.bundlr.network", "aptos", provider ); await bundlr.ready();
This is my code. Ethers does not support aptos. Throws following errors:
What to use instead of ethers?