npm.io
7.5.3 • Published 1 year ago

@substrate/txwrapper-substrate

Licence
Apache-2.0
Version
7.5.3
Deps
1
Size
235 kB
Vulns
0
Weekly
0
Stars
80



@substrate/txwrapper-substrate

Selected dispatchables of Substrate pallets, to be re-exported by chain specific txwrappers

npm Github Actions david-dm



yarn add @substrate/txwrapper-substrate

In a JS/TS index file of package:

import { methods as substrateMethods } from '@substrate/txwrapper-substrate';

// Export methods of substrate pallets included in the chain's runtime.
export const methods = {
    balances: substrateMethods.balances,
    utility: substrateMethods.utility,
    proxy: substrateMethods.proxy,
  };

Have a look at the txwrapper creation guide for chain builders to see more guidance on how to use this package in a chain specific txwrapper.