pub enum RpcQueryRequest {
Show 24 variants
Variant0 {
account_id: AccountId,
block_id: BlockId,
request_type: RpcQueryRequestVariant0RequestType,
},
Variant1 {
account_id: AccountId,
block_id: BlockId,
request_type: RpcQueryRequestVariant1RequestType,
},
Variant2 {
account_id: AccountId,
block_id: BlockId,
include_proof: Option<bool>,
prefix_base64: String,
request_type: RpcQueryRequestVariant2RequestType,
},
Variant3 {
account_id: AccountId,
block_id: BlockId,
public_key: PublicKey,
request_type: RpcQueryRequestVariant3RequestType,
},
Variant4 {
account_id: AccountId,
block_id: BlockId,
request_type: RpcQueryRequestVariant4RequestType,
},
Variant5 {
account_id: AccountId,
args_base64: String,
block_id: BlockId,
method_name: String,
request_type: RpcQueryRequestVariant5RequestType,
},
Variant6 {
block_id: BlockId,
code_hash: CryptoHash,
request_type: RpcQueryRequestVariant6RequestType,
},
Variant7 {
account_id: AccountId,
block_id: BlockId,
request_type: RpcQueryRequestVariant7RequestType,
},
Variant8 {
account_id: AccountId,
finality: Finality,
request_type: RpcQueryRequestVariant8RequestType,
},
Variant9 {
account_id: AccountId,
finality: Finality,
request_type: RpcQueryRequestVariant9RequestType,
},
Variant10 {
account_id: AccountId,
finality: Finality,
include_proof: Option<bool>,
prefix_base64: String,
request_type: RpcQueryRequestVariant10RequestType,
},
Variant11 {
account_id: AccountId,
finality: Finality,
public_key: PublicKey,
request_type: RpcQueryRequestVariant11RequestType,
},
Variant12 {
account_id: AccountId,
finality: Finality,
request_type: RpcQueryRequestVariant12RequestType,
},
Variant13 {
account_id: AccountId,
args_base64: String,
finality: Finality,
method_name: String,
request_type: RpcQueryRequestVariant13RequestType,
},
Variant14 {
code_hash: CryptoHash,
finality: Finality,
request_type: RpcQueryRequestVariant14RequestType,
},
Variant15 {
account_id: AccountId,
finality: Finality,
request_type: RpcQueryRequestVariant15RequestType,
},
Variant16 {
account_id: AccountId,
request_type: RpcQueryRequestVariant16RequestType,
sync_checkpoint: SyncCheckpoint,
},
Variant17 {
account_id: AccountId,
request_type: RpcQueryRequestVariant17RequestType,
sync_checkpoint: SyncCheckpoint,
},
Variant18 {
account_id: AccountId,
include_proof: Option<bool>,
prefix_base64: String,
request_type: RpcQueryRequestVariant18RequestType,
sync_checkpoint: SyncCheckpoint,
},
Variant19 {
account_id: AccountId,
public_key: PublicKey,
request_type: RpcQueryRequestVariant19RequestType,
sync_checkpoint: SyncCheckpoint,
},
Variant20 {
account_id: AccountId,
request_type: RpcQueryRequestVariant20RequestType,
sync_checkpoint: SyncCheckpoint,
},
Variant21 {
account_id: AccountId,
args_base64: String,
method_name: String,
request_type: RpcQueryRequestVariant21RequestType,
sync_checkpoint: SyncCheckpoint,
},
Variant22 {
code_hash: CryptoHash,
request_type: RpcQueryRequestVariant22RequestType,
sync_checkpoint: SyncCheckpoint,
},
Variant23 {
account_id: AccountId,
request_type: RpcQueryRequestVariant23RequestType,
sync_checkpoint: SyncCheckpoint,
},
}Expand description
RpcQueryRequest
JSON schema
{
"title": "RpcQueryRequest",
"type": "object",
"oneOf": [
{
"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"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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": {
"type": "string",
"format": "bytes"
},
"request_type": {
"type": "string",
"enum": [
"view_state"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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": {
"type": "string",
"format": "bytes"
},
"method_name": {
"type": "string"
},
"request_type": {
"type": "string",
"enum": [
"call_function"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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": {
"type": "string",
"format": "bytes"
},
"request_type": {
"type": "string",
"enum": [
"view_state"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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": {
"type": "string",
"format": "bytes"
},
"method_name": {
"type": "string"
},
"request_type": {
"type": "string",
"enum": [
"call_function"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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": {
"type": "string",
"format": "bytes"
},
"request_type": {
"type": "string",
"enum": [
"view_state"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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": {
"type": "string",
"format": "bytes"
},
"method_name": {
"type": "string"
},
"request_type": {
"type": "string",
"enum": [
"call_function"
]
}
}
}
]
},
{
"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"
]
}
}
}
]
},
{
"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§
Variant0
Variant1
Variant2
Fields
§
request_type: RpcQueryRequestVariant2RequestTypeVariant3
Fields
§
request_type: RpcQueryRequestVariant3RequestTypeVariant4
Variant5
Fields
§
request_type: RpcQueryRequestVariant5RequestTypeVariant6
Variant7
Variant8
Variant9
Variant10
Fields
§
request_type: RpcQueryRequestVariant10RequestTypeVariant11
Fields
§
request_type: RpcQueryRequestVariant11RequestTypeVariant12
Variant13
Fields
§
request_type: RpcQueryRequestVariant13RequestTypeVariant14
Variant15
Variant16
Variant17
Variant18
Variant19
Variant20
Variant21
Variant22
Fields
§
code_hash: CryptoHash§
request_type: RpcQueryRequestVariant22RequestType§
sync_checkpoint: SyncCheckpointVariant23
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§const fn clone_from(&mut self, source: &Self)
const 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<RpcQueryRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcQueryRequest, <__D as Deserializer<'de>>::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) -> RpcQueryRequest
fn from(value: &RpcQueryRequest) -> RpcQueryRequest
Converts to this type from the input type.
Source§impl Serialize for RpcQueryRequest
impl Serialize for RpcQueryRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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