@mutadev/account
v0.2.0
Published
Account system for [Muta framework](https://github.com/nervosnetwork/muta),
Downloads
37
Readme
@mutadev/account
Account system for Muta framework,
Signature
const Account = require('@mutadev/account');
const account = new Account('0x...');
account.signTransaction({
service: '...',
method: '...',
payload: '{...}',
sender: '0x...',
});
Multi-signature
const Account = require('@mutadev/account');
const account = new Account('0x...');
// a signed transaction from another account
const signedTransaction = {};
account.signTransaction(signedTransaction);