Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Latest commit

 

History

History

muta-account

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

@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);