klay_call
Executes a new message call immediately without creating a transaction on the block chain. It returns data or an error object of JSON RPC if error occurs.
Parameters
Name | Type | Description |
---|---|---|
callObject | Object | The transaction call object. See the next table for the object's properties. |
blockNumberOrHash | QUANTITY | TAG | HASH | Integer or hexadecimal block number, or the string |
callObject
has the following properties:
Name | Type | Description |
---|---|---|
from | 20-byte DATA | (optional) The address the transaction is sent from. |
to | 20-byte DATA | (optional when testing the deployment of a new contract) The address the transaction is directed to. |
gas | QUANTITY | (optional) Integer of the gas provided for the transaction execution. |
gasPrice | QUANTITY | (optional) Integer of the gasPrice used for each paid gas. |
value | QUANTITY | (optional) Integer of the value sent with this transaction. |
data | DATA | (optional) Hash of the method signature and encoded parameters. Data size is limited to 20KB. |
Return Value
Type | Description |
---|---|
DATA | The return value of executed contract. |
Example
Last updated