getArweaveConfig()

ArConnect Injected API getArweaveConfig() function

It can be useful to know what Arweave gateway the extension uses for your application.

You can set this when instantiating Othent or when calling connect().

API

getArweaveConfig(): Promise<GatewayConfig>;

Example usage

import { Othent } from "@othent/kms";

const othent = new Othent({ appInfo, throwErrors: false, ... });

const gatewayConfig = await othent.getArweaveConfig();

console.log("Current gateway config =", gatewayConfig);

Last updated