@metaverse-network-sdk/api
Extended API library for polkadot.js in nodejs environments.
Create api manager instance from metaverse network
import { ApiManager } from '@metaverse-network-sdk/api';
async function main() {
const apiManager = await ApiManager.create({ wsEndpoint: 'ws://localhost:9944' });
let api = apiManager.api;
await api.isReady;
// use api
}
main();