Retrive Gateway Config
Wander Injected API getArweaveConfig() function
Example usage
import Arweave from "arweave";
// connect to the extension
await window.arweaveWallet.connect(["ACCESS_ARWEAVE_CONFIG"]);
// get the current gateway
const gateway = await window.arweaveWallet.getArweaveConfig();
// setup an arweave-js client using
// the obtained gateway
const client = new Arweave(gateway);Last updated
Was this helpful?