CallRequest
CallRequest is the input to the /call
endpoint.
Properties
Name | Type | Description | Required |
---|---|---|---|
network_identifier | NetworkIdentifier | The network_identifier specifies which network a particular object is associated with. | True |
method | String | Method is some network-specific procedure call. This method could map to a network-specific RPC endpoint, a method in an SDK generated from a smart contract, or some hybrid of the two. The implementation must define all available methods in the Allow object. However, it is up to the caller to determine which parameters to provide when invoking /call . | True |
parameters | Object | Parameters is some network-specific argument for a method. It is up to the caller to determine which parameters to provide when invoking /call . | True |
Example
{
"network_identifier": {
"blockchain": "bitcoin",
"network": "mainnet",
"sub_network_identifier": {
"network": "shard 1",
"metadata": {
"producer": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5"
}
}
},
"method": "eth_call",
"parameters": {
"block_number": 23,
"address": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5"
}
}