Irys-xyz / arweave-js-sdk

JS SDK for Irys on Arweave
110 stars 95 forks source link

Error: unsupported provider #68

Closed pashupatisah112 closed 1 year ago

pashupatisah112 commented 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: image_2023-01-09_140851925

What to use instead of ethers?

JesseTheRobot commented 1 year ago

To use Aptos with WebBundlr, you need to: const provider = window.aptos; await provider.connect() then your code as normal