module Etherlite::Api::Rpc
Public Instance Methods
eth_block_number()
click to toggle source
# File lib/etherlite/api/rpc.rb, line 4 def eth_block_number Etherlite::Utils.hex_to_uint ipc_call(:eth_blockNumber) end
eth_call(_params, _block = 'latest')
click to toggle source
# File lib/etherlite/api/rpc.rb, line 28 def eth_call(_params, _block = 'latest') ipc_call(:eth_call, _params, _block) end
eth_gas_price()
click to toggle source
# File lib/etherlite/api/rpc.rb, line 8 def eth_gas_price Etherlite::Utils.hex_to_uint ipc_call(:eth_gasPrice) end
eth_get_balance(_address, _block = 'latest')
click to toggle source
# File lib/etherlite/api/rpc.rb, line 24 def eth_get_balance(_address, _block = 'latest') Etherlite::Utils.hex_to_uint ipc_call(:eth_getBalance, _address, _block) end
eth_get_transaction_by_hash(_tx_hash)
click to toggle source
# File lib/etherlite/api/rpc.rb, line 12 def eth_get_transaction_by_hash(_tx_hash) ipc_call(:eth_getTransactionByHash, _tx_hash) end
eth_get_transaction_count(_address, _block = 'latest')
click to toggle source
# File lib/etherlite/api/rpc.rb, line 20 def eth_get_transaction_count(_address, _block = 'latest') Etherlite::Utils.hex_to_uint ipc_call(:eth_getTransactionCount, _address, _block) end
eth_get_transaction_receipt(_tx_hash)
click to toggle source
# File lib/etherlite/api/rpc.rb, line 16 def eth_get_transaction_receipt(_tx_hash) ipc_call(:eth_getTransactionReceipt, _tx_hash) end
eth_send_raw_transaction(_hex_data)
click to toggle source
# File lib/etherlite/api/rpc.rb, line 32 def eth_send_raw_transaction(_hex_data) ipc_call(:eth_sendRawTransaction, _hex_data) end
eth_send_transaction(_params)
click to toggle source
# File lib/etherlite/api/rpc.rb, line 36 def eth_send_transaction(_params) ipc_call(:eth_sendTransaction, _params) end
evm_increase_time(_seconds)
click to toggle source
# File lib/etherlite/api/rpc.rb, line 54 def evm_increase_time(_seconds) Etherlite::Utils.hex_to_uint ipc_call(:evm_increase_time, _seconds) end
evm_mine()
click to toggle source
# File lib/etherlite/api/rpc.rb, line 58 def evm_mine ipc_call(:evm_mine) end
evm_revert(_snapshot_id)
click to toggle source
# File lib/etherlite/api/rpc.rb, line 50 def evm_revert(_snapshot_id) ipc_call(:evm_revert, _snapshot_id) end
evm_snapshot()
click to toggle source
TestRPC support
# File lib/etherlite/api/rpc.rb, line 46 def evm_snapshot ipc_call(:evm_snapshot) end
personal_send_transaction(_params, _passphrase)
click to toggle source
# File lib/etherlite/api/rpc.rb, line 40 def personal_send_transaction(_params, _passphrase) ipc_call(:personal_sendTransaction, _params, _passphrase) end