eosrpc v0.1.2-beta EOSRPC.Wallet View Source

EOSRPC Wallet Wrapper for Elixir

Based on: https://eosio.github.io/eos/group__eosiorpc.html#walletrpc

Link to this section Summary

Functions

Create a new wallet with the given name

List all public keys across all wallets

Import a private key to the wallet of the given name

List all wallets

List all key pairs across all wallets

Lock a wallet of the given name

Lock all wallets

Open an existing wallet of the given name

Set wallet auto lock timeout (in seconds)

Sign transaction given an array of transaction, require public keys, and chain id

Unlock a wallet with the given name and password

Link to this section Functions

Create a new wallet with the given name

List all public keys across all wallets

Import a private key to the wallet of the given name

List all key pairs across all wallets

Lock a wallet of the given name

Lock all wallets

Open an existing wallet of the given name

Link to this function set_timeout(timeout_secs) View Source

Set wallet auto lock timeout (in seconds)

Link to this function sign_transaction(transaction, keys) View Source

Sign transaction given an array of transaction, require public keys, and chain id

transaction structure should be a map like this json:

{
  "signatures": [],
  "compression": "none",
  "context_free_data": [],
  "transaction": {
    "region": 0,
    "ref_block_num": "32697",
    "ref_block_prefix": "32649",
    "expiration": "2018-09-25T06:28:49",
    "max_net_usage_words": 0,
    "max_kcpu_usage": 0,
    "delay_sec": 0,
    "context_free_actions": [],
    "actions": [
      {
        "account": "eoseco",
        "name": "transfer",
        "authorization": [
          {
            "actor": "eoseco",
            "permission": "active"
          }
        ],
        "data": "0000000050a430550000000000003ab60a000000000000000045434f0000000000"
      }
    ]
  }
}

keys should be a list of public keys

Link to this function sign_transaction(transaction, keys, chain_id) View Source

Unlock a wallet with the given name and password