View Source DiodeClient.Shell (Diode Client v1.2.8)

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

await_all(promises)

block_time()

blockexplorer_url(opts \\ [])

cached_rpc(args)

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

chain_id()

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

ether(x)

finney(x)

get_account(address, peak \\ peak())

get_account_root(address, peak \\ peak())

get_account_roots(address, peak \\ peak())

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

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

get_block_header(block_index)

get_node(key)

get_nodes(key)

get_object(key)

get_state_roots(map)

gwei(x)

kwei(x)

mwei(x)

peak()

peak_number(peak \\ peak())

prefix()

rpc(args)

send_transaction(tx)

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

sticky_conn()

szabo(x)

uncache_rpc(args)

wei(x)