@substrate/txwrapper
Helper funtions for offline transaction generation.
Get Started
yarn add @substrate/txwrapper
In a JS file:
import { importPrivateKey } from '@substrate/txwrapper';
console.log(importPrivateKey('0x...').address);
Go to documentation for all the functions.
Contribute
We welcome contributions. Before submitting your PR, make sure to run the following commands:
-
yarn docs
: Will generate docs based on code comments. -
yarn test
: Make sure all tests pass. -
yarn lint
: Make sure your code follows our linting rules. You can also runyarn lint --fix
to automatically fix some of those errors.