DiodeClient.Shell.Moonbeam (Diode Client v1.4.9)

Copy Markdown View Source

DiodeClient.Shell is the interface to the blockchain state. It allows fetching accounts and block header information. Data fetched is by default checked against a merkle proof.

Example fetching smart contract state from an address

me = DiodeClient.address()
DiodeClient.Shell.get_account(me)

Summary

Functions

block_time()

blockexplorer_url(opts \\ [])

cached_rpc(args)

See DiodeClient.Shell.cached_rpc/1.

call(address, method, types, args, opts \\ [])

chain_id()

create_meta_transaction(address, function_name, types, values, nonce, opts \\ [])

create_transaction(address, function_name, types, values, opts \\ [])

default_gas_limit()

gas_price()

get_account(address, peak \\ peak())

get_account_root(address, peak \\ peak())

get_account_value(address, key, peak \\ peak())

get_account_values(address, keys, peak \\ peak())

get_block_header(block_index)

get_meta_nonce(address, peak \\ peak(), opts \\ [])

get_transaction_receipt(tx_hash)

peak()

peak_number(block \\ peak())

prefix()

rpc(args)

See DiodeClient.Shell.rpc/1.

send_transaction(tx)

send_transaction(address, function_name, types, values, opts \\ [])

uncache_rpc(args)

See DiodeClient.Shell.uncache_rpc/1.