pub enum RpcQueryRequest {
Show 24 variants
ViewAccountByBlockId {
account_id: AccountId,
block_id: BlockId,
request_type: ViewAccountByBlockIdRequestType,
},
ViewCodeByBlockId {
account_id: AccountId,
block_id: BlockId,
request_type: ViewCodeByBlockIdRequestType,
},
ViewStateByBlockId {
account_id: AccountId,
block_id: BlockId,
include_proof: Option<bool>,
prefix_base64: StoreKey,
request_type: ViewStateByBlockIdRequestType,
},
ViewAccessKeyByBlockId {
account_id: AccountId,
block_id: BlockId,
public_key: PublicKey,
request_type: ViewAccessKeyByBlockIdRequestType,
},
ViewAccessKeyListByBlockId {
account_id: AccountId,
block_id: BlockId,
request_type: ViewAccessKeyListByBlockIdRequestType,
},
CallFunctionByBlockId {
account_id: AccountId,
args_base64: FunctionArgs,
block_id: BlockId,
method_name: String,
request_type: CallFunctionByBlockIdRequestType,
},
ViewGlobalContractCodeByBlockId {
block_id: BlockId,
code_hash: CryptoHash,
request_type: ViewGlobalContractCodeByBlockIdRequestType,
},
ViewGlobalContractCodeByAccountIdByBlockId {
account_id: AccountId,
block_id: BlockId,
request_type: ViewGlobalContractCodeByAccountIdByBlockIdRequestType,
},
ViewAccountByFinality {
account_id: AccountId,
finality: Finality,
request_type: ViewAccountByFinalityRequestType,
},
ViewCodeByFinality {
account_id: AccountId,
finality: Finality,
request_type: ViewCodeByFinalityRequestType,
},
ViewStateByFinality {
account_id: AccountId,
finality: Finality,
include_proof: Option<bool>,
prefix_base64: StoreKey,
request_type: ViewStateByFinalityRequestType,
},
ViewAccessKeyByFinality {
account_id: AccountId,
finality: Finality,
public_key: PublicKey,
request_type: ViewAccessKeyByFinalityRequestType,
},
ViewAccessKeyListByFinality {
account_id: AccountId,
finality: Finality,
request_type: ViewAccessKeyListByFinalityRequestType,
},
CallFunctionByFinality {
account_id: AccountId,
args_base64: FunctionArgs,
finality: Finality,
method_name: String,
request_type: CallFunctionByFinalityRequestType,
},
ViewGlobalContractCodeByFinality {
code_hash: CryptoHash,
finality: Finality,
request_type: ViewGlobalContractCodeByFinalityRequestType,
},
ViewGlobalContractCodeByAccountIdByFinality {
account_id: AccountId,
finality: Finality,
request_type: ViewGlobalContractCodeByAccountIdByFinalityRequestType,
},
ViewAccountBySyncCheckpoint {
account_id: AccountId,
request_type: ViewAccountBySyncCheckpointRequestType,
sync_checkpoint: SyncCheckpoint,
},
ViewCodeBySyncCheckpoint {
account_id: AccountId,
request_type: ViewCodeBySyncCheckpointRequestType,
sync_checkpoint: SyncCheckpoint,
},
ViewStateBySyncCheckpoint {
account_id: AccountId,
include_proof: Option<bool>,
prefix_base64: StoreKey,
request_type: ViewStateBySyncCheckpointRequestType,
sync_checkpoint: SyncCheckpoint,
},
ViewAccessKeyBySyncCheckpoint {
account_id: AccountId,
public_key: PublicKey,
request_type: ViewAccessKeyBySyncCheckpointRequestType,
sync_checkpoint: SyncCheckpoint,
},
ViewAccessKeyListBySyncCheckpoint {
account_id: AccountId,
request_type: ViewAccessKeyListBySyncCheckpointRequestType,
sync_checkpoint: SyncCheckpoint,
},
CallFunctionBySyncCheckpoint {
account_id: AccountId,
args_base64: FunctionArgs,
method_name: String,
request_type: CallFunctionBySyncCheckpointRequestType,
sync_checkpoint: SyncCheckpoint,
},
ViewGlobalContractCodeBySyncCheckpoint {
code_hash: CryptoHash,
request_type: ViewGlobalContractCodeBySyncCheckpointRequestType,
sync_checkpoint: SyncCheckpoint,
},
ViewGlobalContractCodeByAccountIdBySyncCheckpoint {
account_id: AccountId,
request_type: ViewGlobalContractCodeByAccountIdBySyncCheckpointRequestType,
sync_checkpoint: SyncCheckpoint,
},
}
Expand description
RpcQueryRequest
JSON schema
{
"title": "RpcQueryRequest",
"type": "object",
"oneOf": [
{
"title": "view_account_by_block_id",
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"account_id",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"request_type": {
"type": "string",
"enum": [
"view_account"
]
}
}
}
]
},
{
"title": "view_code_by_block_id",
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"account_id",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"request_type": {
"type": "string",
"enum": [
"view_code"
]
}
}
}
]
},
{
"title": "view_state_by_block_id",
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"account_id",
"prefix_base64",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"include_proof": {
"type": "boolean"
},
"prefix_base64": {
"$ref": "#/components/schemas/StoreKey"
},
"request_type": {
"type": "string",
"enum": [
"view_state"
]
}
}
}
]
},
{
"title": "view_access_key_by_block_id",
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"account_id",
"public_key",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"public_key": {
"$ref": "#/components/schemas/PublicKey"
},
"request_type": {
"type": "string",
"enum": [
"view_access_key"
]
}
}
}
]
},
{
"title": "view_access_key_list_by_block_id",
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"account_id",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"request_type": {
"type": "string",
"enum": [
"view_access_key_list"
]
}
}
}
]
},
{
"title": "call_function_by_block_id",
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"account_id",
"args_base64",
"method_name",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"args_base64": {
"$ref": "#/components/schemas/FunctionArgs"
},
"method_name": {
"type": "string"
},
"request_type": {
"type": "string",
"enum": [
"call_function"
]
}
}
}
]
},
{
"title": "view_global_contract_code_by_block_id",
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"code_hash",
"request_type"
],
"properties": {
"code_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"request_type": {
"type": "string",
"enum": [
"view_global_contract_code"
]
}
}
}
]
},
{
"title": "view_global_contract_code_by_account_id_by_block_id",
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"account_id",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"request_type": {
"type": "string",
"enum": [
"view_global_contract_code_by_account_id"
]
}
}
}
]
},
{
"title": "view_account_by_finality",
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"account_id",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"request_type": {
"type": "string",
"enum": [
"view_account"
]
}
}
}
]
},
{
"title": "view_code_by_finality",
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"account_id",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"request_type": {
"type": "string",
"enum": [
"view_code"
]
}
}
}
]
},
{
"title": "view_state_by_finality",
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"account_id",
"prefix_base64",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"include_proof": {
"type": "boolean"
},
"prefix_base64": {
"$ref": "#/components/schemas/StoreKey"
},
"request_type": {
"type": "string",
"enum": [
"view_state"
]
}
}
}
]
},
{
"title": "view_access_key_by_finality",
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"account_id",
"public_key",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"public_key": {
"$ref": "#/components/schemas/PublicKey"
},
"request_type": {
"type": "string",
"enum": [
"view_access_key"
]
}
}
}
]
},
{
"title": "view_access_key_list_by_finality",
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"account_id",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"request_type": {
"type": "string",
"enum": [
"view_access_key_list"
]
}
}
}
]
},
{
"title": "call_function_by_finality",
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"account_id",
"args_base64",
"method_name",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"args_base64": {
"$ref": "#/components/schemas/FunctionArgs"
},
"method_name": {
"type": "string"
},
"request_type": {
"type": "string",
"enum": [
"call_function"
]
}
}
}
]
},
{
"title": "view_global_contract_code_by_finality",
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"code_hash",
"request_type"
],
"properties": {
"code_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"request_type": {
"type": "string",
"enum": [
"view_global_contract_code"
]
}
}
}
]
},
{
"title": "view_global_contract_code_by_account_id_by_finality",
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"account_id",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"request_type": {
"type": "string",
"enum": [
"view_global_contract_code_by_account_id"
]
}
}
}
]
},
{
"title": "view_account_by_sync_checkpoint",
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"account_id",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"request_type": {
"type": "string",
"enum": [
"view_account"
]
}
}
}
]
},
{
"title": "view_code_by_sync_checkpoint",
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"account_id",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"request_type": {
"type": "string",
"enum": [
"view_code"
]
}
}
}
]
},
{
"title": "view_state_by_sync_checkpoint",
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"account_id",
"prefix_base64",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"include_proof": {
"type": "boolean"
},
"prefix_base64": {
"$ref": "#/components/schemas/StoreKey"
},
"request_type": {
"type": "string",
"enum": [
"view_state"
]
}
}
}
]
},
{
"title": "view_access_key_by_sync_checkpoint",
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"account_id",
"public_key",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"public_key": {
"$ref": "#/components/schemas/PublicKey"
},
"request_type": {
"type": "string",
"enum": [
"view_access_key"
]
}
}
}
]
},
{
"title": "view_access_key_list_by_sync_checkpoint",
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"account_id",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"request_type": {
"type": "string",
"enum": [
"view_access_key_list"
]
}
}
}
]
},
{
"title": "call_function_by_sync_checkpoint",
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"account_id",
"args_base64",
"method_name",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"args_base64": {
"$ref": "#/components/schemas/FunctionArgs"
},
"method_name": {
"type": "string"
},
"request_type": {
"type": "string",
"enum": [
"call_function"
]
}
}
}
]
},
{
"title": "view_global_contract_code_by_sync_checkpoint",
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"code_hash",
"request_type"
],
"properties": {
"code_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"request_type": {
"type": "string",
"enum": [
"view_global_contract_code"
]
}
}
}
]
},
{
"title": "view_global_contract_code_by_account_id_by_sync_checkpoint",
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"account_id",
"request_type"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"request_type": {
"type": "string",
"enum": [
"view_global_contract_code_by_account_id"
]
}
}
}
]
}
]
}
Variants§
ViewAccountByBlockId
ViewCodeByBlockId
ViewStateByBlockId
Fields
§
request_type: ViewStateByBlockIdRequestType
ViewAccessKeyByBlockId
Fields
§
request_type: ViewAccessKeyByBlockIdRequestType
ViewAccessKeyListByBlockId
CallFunctionByBlockId
ViewGlobalContractCodeByBlockId
ViewGlobalContractCodeByAccountIdByBlockId
Fields
§
request_type: ViewGlobalContractCodeByAccountIdByBlockIdRequestType
ViewAccountByFinality
ViewCodeByFinality
ViewStateByFinality
Fields
§
request_type: ViewStateByFinalityRequestType
ViewAccessKeyByFinality
Fields
§
request_type: ViewAccessKeyByFinalityRequestType
ViewAccessKeyListByFinality
Fields
§
request_type: ViewAccessKeyListByFinalityRequestType
CallFunctionByFinality
ViewGlobalContractCodeByFinality
ViewGlobalContractCodeByAccountIdByFinality
Fields
§
request_type: ViewGlobalContractCodeByAccountIdByFinalityRequestType
ViewAccountBySyncCheckpoint
ViewCodeBySyncCheckpoint
ViewStateBySyncCheckpoint
ViewAccessKeyBySyncCheckpoint
ViewAccessKeyListBySyncCheckpoint
CallFunctionBySyncCheckpoint
Fields
§
args_base64: FunctionArgs
§
request_type: CallFunctionBySyncCheckpointRequestType
§
sync_checkpoint: SyncCheckpoint
ViewGlobalContractCodeBySyncCheckpoint
Fields
§
code_hash: CryptoHash
§
request_type: ViewGlobalContractCodeBySyncCheckpointRequestType
§
sync_checkpoint: SyncCheckpoint
ViewGlobalContractCodeByAccountIdBySyncCheckpoint
Fields
§
sync_checkpoint: SyncCheckpoint
Trait Implementations§
Source§impl Clone for RpcQueryRequest
impl Clone for RpcQueryRequest
Source§fn clone(&self) -> RpcQueryRequest
fn clone(&self) -> RpcQueryRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RpcQueryRequest
impl Debug for RpcQueryRequest
Source§impl<'de> Deserialize<'de> for RpcQueryRequest
impl<'de> Deserialize<'de> for RpcQueryRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&RpcQueryRequest> for RpcQueryRequest
impl From<&RpcQueryRequest> for RpcQueryRequest
Source§fn from(value: &RpcQueryRequest) -> Self
fn from(value: &RpcQueryRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcQueryRequest
impl RefUnwindSafe for RpcQueryRequest
impl Send for RpcQueryRequest
impl Sync for RpcQueryRequest
impl Unpin for RpcQueryRequest
impl UnwindSafe for RpcQueryRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more