For the complete documentation index, see llms.txt. This page is also available as Markdown.

View Functions

View functions are new features available for chains using Runtime Metaada V16. It's available as part of the ChainApi interface through syntax: client.view.<pallet>.<methodName> similar to runtime apis.

const provider = new WsProvider('wss://westend-rpc.polkadot.io');
const dedotClient = await DedotClient.create<WestendApi>(provider);

const shouldBeTrue: boolean = await client.view.proxy.isSuperset('Any', 'Governance');

Last updated