mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-11 21:04:11 +00:00
Update RPC types to be inline with internal expectations and stay to spec
This commit is contained in:
parent
f7d858d58b
commit
e51a4632cd
@ -24,9 +24,9 @@ type
|
||||
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.
|
||||
value*: UInt256 # (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
|
||||
nonce*: AccountNonce # (optional) integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce
|
||||
|
||||
EthCall* = object
|
||||
# Parameter from user
|
||||
@ -34,7 +34,7 @@ type
|
||||
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.
|
||||
value*: UInt256 # (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
|
||||
|
Loading…
x
Reference in New Issue
Block a user