eosrpc v0.1.0-beta EOSRPC.Chain

EOSRPC Wallet Wrapper for Elixir

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

Link to this section Summary

Functions

Serialize back binary hex to json

Serialize json to binary hex. The resulting binary hex is usually used for the data field in push_transaction

Get information related to an account

Get information related to a block

Fetch smart contract code

Get latest information related to a node

Get required keys to sign a transaction from list of your keys

Fetch smart contract data from an account

This method expects a transaction in JSON format and will attempt to apply it to the blockchain,

Link to this section Functions

Link to this function abi_bin_to_json(code, action, binargs)

Serialize back binary hex to json.

Link to this function abi_json_to_bin(code, action, args)

Serialize json to binary hex. The resulting binary hex is usually used for the data field in push_transaction.

Link to this function get_account(account_name)

Get information related to an account.

Link to this function get_block(block_num_or_id)

Get information related to a block.

Link to this function get_code(account_name)

Fetch smart contract code.

Get latest information related to a node

Link to this function get_required_keys(transaction_data, available_keys)

Get required keys to sign a transaction from list of your keys.

Link to this function get_table_rows(scope, code, table, json)

Fetch smart contract data from an account.

Link to this function push_transaction(signed_transaction)

This method expects a transaction in JSON format and will attempt to apply it to the blockchain,

signed_transaction should be a map like this JSON:

{ “signatures”: [

"EOSKZ4pTehVfqs92wujRp34qRAvUjKJrUyufZfJDo9fdBLzhieyfUSUJpKz1Z12rxh1gTQZ4BcWvKourzxCLb2fMsvN898KSn"

], “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"
  }
]

} }

Link to this function push_transactions(signed_transactions)