UNPKG

@polkadot/api

Version:

Promise and RxJS wrappers around the Polkadot JS RPC

6 lines (5 loc) 299 B
import { createClass } from './createClass.js'; export function createSubmittable(apiType, api, decorateMethod, registry, blockHash) { const Submittable = createClass({ api, apiType, blockHash, decorateMethod }); return (extrinsic) => new Submittable(registry || api.registry, extrinsic); }