ETH (eth v0.6.5) View Source

Elixir module that provides Ethereum utility functions

Link to this section Summary

Functions

In order to use most of the functions in this library you need to be connected to an ethereum node. This could be your own self-hosted node running locally or a public proxy.

Link to this section Functions

In order to use most of the functions in this library you need to be connected to an ethereum node. This could be your own self-hosted node running locally or a public proxy.

Examples

iex> ETH.block_number
46080211

See ETH.Query.block_number!/0.

See ETH.Utils.buffer_to_int/1.

See ETH.Transaction.Builder.build/1.

See ETH.Transaction.Builder.build/2.

Link to this function

build(sender_wallet, receiver_wallet, params_or_value)

View Source

See ETH.Transaction.Builder.build/3.

See ETH.Query.call/1.

Link to this function

call(call_params, state)

View Source

See ETH.Query.call/2.

See ETH.Query.call!/1.

Link to this function

call!(call_params, state)

View Source

See ETH.Query.call!/2.

Link to this function

convert(value, denomination)

View Source

See ETH.Utils.convert/2.

Link to this function

decode(rlp_encoded_transaction)

View Source

See ETH.Transaction.Signer.decode/1.

See ETH.Utils.decode16/1.

Link to this function

encode(signed_transaction_list)

View Source

See ETH.Transaction.Signer.encode/1.

See ETH.Utils.encode16/1.

Link to this function

estimate_gas(transaction)

View Source

See ETH.Query.estimate_gas/1.

Link to this function

estimate_gas(transaction, denomination)

View Source

See ETH.Query.estimate_gas/2.

Link to this function

estimate_gas!(transaction)

View Source

See ETH.Query.estimate_gas!/1.

Link to this function

estimate_gas!(transaction, denomination)

View Source

See ETH.Query.estimate_gas!/2.

See ETH.Query.gas_price/0.

See ETH.Query.gas_price!/0.

See ETH.Query.get_accounts/0.

See ETH.Query.get_accounts!/0.

Link to this function

get_address(private_or_public_key)

View Source

See ETH.Utils.get_address/1.

Link to this function

get_balance(wallet_or_address)

View Source

See ETH.Query.get_balance/1.

Link to this function

get_balance(wallet_or_address, state)

View Source

See ETH.Query.get_balance/2.

Link to this function

get_balance(wallet_or_address, denomination, state)

View Source

See ETH.Query.get_balance/3.

Link to this function

get_balance!(wallet_or_address)

View Source

See ETH.Query.get_balance!/1.

Link to this function

get_balance!(wallet_or_address, state)

View Source

See ETH.Query.get_balance!/2.

Link to this function

get_balance!(wallet_or_address, denomination, state)

View Source

See ETH.Query.get_balance!/3.

See ETH.Query.get_block/0.

See ETH.Query.get_block/1.

See ETH.Query.get_block!/0.

See ETH.Query.get_block!/1.

Link to this function

get_block_transaction_count(identifier)

View Source

See ETH.TransactionQueries.get_block_transaction_count/1.

Link to this function

get_block_transaction_count!(identifier)

View Source

See ETH.TransactionQueries.get_block_transaction_count!/1.

Link to this function

get_block_transactions(identifier)

View Source

See ETH.TransactionQueries.get_block_transactions/1.

Link to this function

get_block_transactions!(identifier)

View Source

See ETH.TransactionQueries.get_block_transactions!/1.

Link to this function

get_chain_id(v, chain_id)

View Source

See ETH.Utils.get_chain_id/2.

See ETH.Utils.get_private_key/0.

Link to this function

get_public_key(private_key)

View Source

See ETH.Utils.get_public_key/1.

Link to this function

get_sender_address(transaction_input)

View Source

See ETH.Transaction.get_sender_address/1.

Link to this function

get_senders_public_key(transaction_input)

View Source

See ETH.Transaction.get_senders_public_key/1.

Link to this function

get_transaction(transaction_hash)

View Source

See ETH.TransactionQueries.get_transaction/1.

Link to this function

get_transaction!(transaction_hash)

View Source

See ETH.TransactionQueries.get_transaction!/1.

Link to this function

get_transaction_count(wallet_or_address)

View Source

See ETH.TransactionQueries.get_transaction_count/1.

Link to this function

get_transaction_count(wallet_or_address, state)

View Source

See ETH.TransactionQueries.get_transaction_count/2.

Link to this function

get_transaction_count!(wallet_or_address)

View Source

See ETH.TransactionQueries.get_transaction_count!/1.

Link to this function

get_transaction_count!(wallet_or_address, state)

View Source

See ETH.TransactionQueries.get_transaction_count!/2.

Link to this function

get_transaction_from_block(identifier, index)

View Source

See ETH.TransactionQueries.get_transaction_from_block/2.

Link to this function

get_transaction_from_block!(identifier, index)

View Source

See ETH.TransactionQueries.get_transaction_from_block!/2.

Link to this function

get_transaction_receipt(transaction_hash)

View Source

See ETH.TransactionQueries.get_transaction_receipt/1.

Link to this function

get_transaction_receipt!(transaction_hash)

View Source

See ETH.TransactionQueries.get_transaction_receipt!/1.

Link to this function

hash_transaction(transaction)

View Source

See ETH.Transaction.hash_transaction/1.

Link to this function

hash_transaction(transaction, include_signature)

View Source

See ETH.Transaction.hash_transaction/2.

See ETH.Utils.pad_to_even/1.

See ETH.Transaction.Parser.parse/1.

Link to this function

secp256k1_signature(hash, private_key)

View Source

See ETH.Utils.secp256k1_signature/2.

See ETH.Transaction.send/1.

See ETH.Transaction.send!/1.

Link to this function

send_transaction(params_or_wallet, private_key_or_params)

View Source

See ETH.Transaction.send_transaction/2.

Link to this function

send_transaction(sender_wallet, receiver_wallet, value_or_params)

View Source

See ETH.Transaction.send_transaction/3.

Link to this function

send_transaction(sender_wallet, receiver_wallet, value_or_params, private_key)

View Source

See ETH.Transaction.send_transaction/4.

Link to this function

send_transaction!(params_or_wallet, private_key_or_params)

View Source

See ETH.Transaction.send_transaction!/2.

Link to this function

send_transaction!(sender_wallet, receiver_wallet, value_or_params)

View Source

See ETH.Transaction.send_transaction!/3.

Link to this function

send_transaction!(sender_wallet, receiver_wallet, value_or_params, private_key)

View Source

See ETH.Transaction.send_transaction!/4.

Link to this function

sign_transaction(transaction, private_key)

View Source

See ETH.Transaction.Signer.sign_transaction/2.

See ETH.Query.syncing/0.

See ETH.Query.syncing!/0.

See ETH.Utils.to_buffer/1.

See ETH.Transaction.Parser.to_list/1.