Introduction
Last updated
Was this helpful?
Was this helpful?
import { Polymesh } from '@polymathnetwork/polymesh-sdk';
async function run() {
const polyClient = await Polymesh.connect({
nodeUrl: 'wss://some-node-url.com',
accountSeed: 'YOUWISH',
});
// do stuff with the client
}import { Polymesh, Keyring } from '@polymathnetwork/polymesh-sdk';
async function run() {
const keyring = new Keyring();
keyring.addFromAddress(accountAddress);
const signer = getSignerFromExtension(); // this is not an existing function, how you get this depends on the extension
const polyClient = await Polymesh.connect({
nodeUrl: 'wss://some-node-url.com',
keyring,
signer,
});
// do stuff with the client
}