source*:EthAddressStr# the address the transaction is send from.
to*:EthAddressStr# (optional when creating new contract) the address the transaction is directed to.
gas*:GasInt# (optional, default: 90000) integer of the gas provided for the transaction execution. It will return unused gas.
gasPrice*:GasInt# (optional, default: To-Be-Determined) integer of the gasPrice used for each paid gas.
value*:int# (optional) integer of the value sent with this transaction.
data*:EthHashStr# TODO: Support more data. The compiled code of a contract OR the hash of the invoked method signature and encoded parameters. For details see Ethereum Contract ABI.
nonce*:int# (optional) integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce
source*:EthAddressStr# (optional) The address the transaction is send from.
to*:EthAddressStr# The address the transaction is directed to.
gas*:GasInt# (optional) Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions.
gasPrice*:GasInt# (optional) Integer of the gasPrice used for each paid gas.
value*:int# (optional) Integer of the value sent with this transaction.
data*:EthHashStr# (optional) Hash of the method signature and encoded parameters. For details see Ethereum Contract ABI.
## A block object, or null when no block was found
## Note that this includes slightly different information from eth_common.BlockHeader
# Difficult to process variant objects in input data, as kind is immutable.
# TODO: This might need more work to handle "or" options
kind*:FilterDataKind
items*:seq[FilterData]
item*:UInt256
FilterOptions*=object
# Parameter from user
fromBlock*:string# (optional, default: "latest") integer block number, or "latest" for the last mined block or "pending", "earliest" for not yet mined transactions.
toBlock*:string# (optional, default: "latest") integer block number, or "latest" for the last mined block or "pending", "earliest" for not yet mined transactions.
address*:EthAddress# (optional) contract address or a list of addresses from which logs should originate.
topics*:seq[FilterData]# (optional) list of DATA topics. Topics are order-dependent. Each topic can also be a list of DATA with "or" options.
WhisperPost*=object
# Parameter from user
source*:WhisperIdentityStr# (optional) the identity of the sender.
to*:WhisperIdentityStr# (optional) the identity of the receiver. When present whisper will encrypt the message so that only the receiver can decrypt it.
topics*:seq[HexDataStr]# list of DATA topics, for the receiver to identify messages.
payload*:HexDataStr# the payload of the message.
priority*:int# integer of the priority in a rang from.
ttl*:int# integer of the time to live in seconds.
WhisperIdentity=array[60,byte]
WhisperMessage*=object
# Returned to user
hash*:Hash256# the hash of the message.
source*:WhisperIdentity# the sender of the message, if a sender was specified.
to*:WhisperIdentity# the receiver of the message, if a receiver was specified.
expiry*:int# integer of the time in seconds when this message should expire.
ttl*:int# integer of the time the message should float in the system in seconds.
sent*:int# integer of the unix timestamp when the message was sent.
topics*:seq[UInt256]# list of DATA topics the message contained.
payload*:Blob# the payload of the message.
workProved*:int# integer of the work this message required before it was send.