Ethereum Wallet (ID: ethwallet)
Manage Ethereum accounts and sign transactions.
Contents
Installation
MESG SDK
This service requires MESG SDK to be installed first.
You can install MESG SDK by running the following command or follow the installation guide.
npm install -g mesg-cli
Deploy the Service
To deploy this service, go to this service page on the MESG Marketplace and click the button "get/buy this service".
Definitions
Tasks
List accounts
Task key: list
Return the addresses of existing account.
Outputs
Name |
Key |
Type |
Description |
Addresses |
addresses |
String |
List of addresses. |
Create a new account
Task key: create
Create a new account with a passphrase. Make sure to backup the passphrase.
Inputs
Name |
Key |
Type |
Description |
Passphrase |
passphrase |
String |
Passphrase to use with the account. |
Outputs
Name |
Key |
Type |
Description |
Address |
address |
String |
The public address of the account. |
Delete an account
Task key: delete
Delete an account from the wallet. Need the address and its associated passphrase.
Inputs
Name |
Key |
Type |
Description |
Address |
address |
String |
The public address of the account. |
Passphrase |
passphrase |
String |
Passphrase to use with the account. |
Outputs
Name |
Key |
Type |
Description |
Address |
address |
String |
The public address of the account. |
Export an account
Task key: export
Export an existing account in order to backup it and import it in an other wallet. Respect the Web3 Secret Storage specification. See https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition for more information.
Inputs
Name |
Key |
Type |
Description |
Address |
address |
String |
The public address of the account. |
Passphrase |
passphrase |
String |
Passphrase to use with the account. |
Outputs
Name |
Key |
Type |
Description |
Address |
address |
String |
The public address of the account. |
ID |
id |
String |
The id of the account. |
Version |
version |
Number |
The version used to export the account. |
Crypto |
crypto |
Object |
The encrypted account. |
Import an account
Task key: import
Import an account. The account have to respect the Web3 Secret Storage specification. See https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition for more information.
Inputs
Name |
Key |
Type |
Description |
Account |
account |
Object |
The JSON encoded account. |
Passphrase |
passphrase |
String |
Passphrase to use with the account. |
Outputs
Name |
Key |
Type |
Description |
Address |
address |
String |
The public address of the account. |
Sign transaction
Task key: sign
Sign a transaction with the specified account.
Inputs
Name |
Key |
Type |
Description |
Address |
address |
String |
The public address of the account. |
Passphrase |
passphrase |
String |
Passphrase to use with the account. |
Transaction |
transaction |
Object |
The transaction to sign. |
Outputs
Name |
Key |
Type |
Description |
Signed transaction |
signedTransaction |
String |
The signed transaction. |
Import an account from a private key
Task key: importFromPrivateKey
Import an account from a private key.
Inputs
Name |
Key |
Type |
Description |
Private key |
privateKey |
String |
The private key to import. |
Passphrase |
passphrase |
String |
Passphrase to use with the account. |
Outputs
Name |
Key |
Type |
Description |
Address |
address |
String |
The public address of the account. |