eosrpc v0.3.0 EOSRPC.Chain View Source

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) View Source

Serialize back binary hex to json.

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

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) View Source

Get information related to an account.

Link to this function get_block(block_num_or_id) View Source

Get information related to a block.

Fetch smart contract code.

Get latest information related to a node

Link to this function get_required_keys(transaction_data, available_keys) View Source

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

Link to this function get_table_rows(contract, scope, table, json \\ true) View Source

Fetch smart contract data from an account.

Link to this function push_transaction(signed_transaction) View Source

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",
  "transaction": {
    "context_free_actions": [],
    "delay_sec": 0,
    "expiration": "2018-09-25T06:28:49",
    "max_cpu_usage_ms": 0,
    "net_usage_words": 0,
    "ref_block_num": 32697,
    "ref_block_prefix": 32649123,
    "transaction_extensions": []
    "actions": [
      {
        "account": "eosio",
        "name": "transfer",
        "authorization": [
          {
            "actor": "eosio",
            "permission": "active"
          }
        ],
        "data": "0000000050a430550000000000003ab60a000000000000000045434f0000000000"
      }
    ]
  }
}
Link to this function push_transactions(signed_transactions) View Source