Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.28 KB

File metadata and controls

37 lines (29 loc) · 1.28 KB



@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.