@substrate/txwrapper-registry
Registry creation support, catering to chains with types in [@polkadot/apps-config](https://github.com/polkadot-js/apps/tree/master/packages/apps-config/README.md)
yarn add @substrate/txwrapper-registry
In a JS/TS index file of package:
import { getRegistry } from '@substrate/txwrapper-registry';
const registry = getRegistry({
chainName: 'Polkadot',
specName: 'polkadot',
specVersion: 26,
metadataRpc,
});
Have a look at the examples to see how getRegistry
is used in the whole lifecycle of a transaction, from generation to signing to broadcast.