method WsProvider.prototype.subscribeimport { WsProvider } from "https://dotland.deno.dev/x/polkadot@0.2.38/api/index.ts"; subscribe(type: string,method: string,params: unknown[],callback: ProviderInterfaceCallback,): Promise<number | string>Examples const provider = new WsProvider('ws://127.0.0.1:9944'); const rpc = new Rpc(provider); rpc.state.subscribeStorage([[storage.system.account, <Address>]], (_, values) => { console.log(values) }).then((subscriptionId) => { console.log('balance changes subscription id: ', subscriptionId) }) Parameterstype: stringmethod: stringparams: unknown[]callback: ProviderInterfaceCallbackReturnsPromise<number | string>