View Source DiodeClient.Shell.MoonbaseAlpha (Diode Client v1.3.0)

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 \\ [])

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())

get_node(key)

See DiodeClient.Shell.get_node/1.

get_object(key)

See DiodeClient.Shell.get_object/1.

peak()

peak_number(peak \\ peak())

prefix()

rpc(args)

See DiodeClient.Shell.rpc/1.

send_transaction(tx)

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