pub enum RpcQueryError {
NoSyncedBlocks,
UnavailableShard {
requested_shard_id: ShardId,
},
GarbageCollectedBlock {
block_hash: CryptoHash,
block_height: u64,
},
UnknownBlock {
block_reference: BlockReference,
},
InvalidAccount {
block_hash: CryptoHash,
block_height: u64,
requested_account_id: AccountId,
},
UnknownAccount {
block_hash: CryptoHash,
block_height: u64,
requested_account_id: AccountId,
},
NoContractCode {
block_hash: CryptoHash,
block_height: u64,
contract_account_id: AccountId,
},
TooLargeContractState {
block_hash: CryptoHash,
block_height: u64,
contract_account_id: AccountId,
},
UnknownAccessKey {
block_hash: CryptoHash,
block_height: u64,
public_key: PublicKey,
},
ContractExecutionError {
block_hash: CryptoHash,
block_height: u64,
vm_error: String,
},
NoGlobalContractCode {
block_hash: CryptoHash,
block_height: u64,
identifier: GlobalContractIdentifier,
},
InternalError {
error_message: String,
},
}Expand description
RpcQueryError
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"enum": [
"NO_SYNCED_BLOCKS"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"requested_shard_id"
],
"properties": {
"requested_shard_id": {
"$ref": "#/components/schemas/ShardId"
}
}
},
"name": {
"type": "string",
"enum": [
"UNAVAILABLE_SHARD"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
},
"name": {
"type": "string",
"enum": [
"GARBAGE_COLLECTED_BLOCK"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_reference"
],
"properties": {
"block_reference": {
"$ref": "#/components/schemas/BlockReference"
}
}
},
"name": {
"type": "string",
"enum": [
"UNKNOWN_BLOCK"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"requested_account_id"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"requested_account_id": {
"$ref": "#/components/schemas/AccountId"
}
}
},
"name": {
"type": "string",
"enum": [
"INVALID_ACCOUNT"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"requested_account_id"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"requested_account_id": {
"$ref": "#/components/schemas/AccountId"
}
}
},
"name": {
"type": "string",
"enum": [
"UNKNOWN_ACCOUNT"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"contract_account_id"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"contract_account_id": {
"$ref": "#/components/schemas/AccountId"
}
}
},
"name": {
"type": "string",
"enum": [
"NO_CONTRACT_CODE"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"contract_account_id"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"contract_account_id": {
"$ref": "#/components/schemas/AccountId"
}
}
},
"name": {
"type": "string",
"enum": [
"TOO_LARGE_CONTRACT_STATE"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"public_key"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"public_key": {
"$ref": "#/components/schemas/PublicKey"
}
}
},
"name": {
"type": "string",
"enum": [
"UNKNOWN_ACCESS_KEY"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"vm_error"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"vm_error": {
"type": "string"
}
}
},
"name": {
"type": "string",
"enum": [
"CONTRACT_EXECUTION_ERROR"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"block_hash",
"block_height",
"identifier"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"identifier": {
"$ref": "#/components/schemas/GlobalContractIdentifier"
}
}
},
"name": {
"type": "string",
"enum": [
"NO_GLOBAL_CONTRACT_CODE"
]
}
}
},
{
"type": "object",
"required": [
"info",
"name"
],
"properties": {
"info": {
"type": "object",
"required": [
"error_message"
],
"properties": {
"error_message": {
"type": "string"
}
}
},
"name": {
"type": "string",
"enum": [
"INTERNAL_ERROR"
]
}
}
}
]
}Variants§
NoSyncedBlocks
GarbageCollectedBlock
UnknownBlock
Fields
§
block_reference: BlockReferenceInvalidAccount
UnknownAccount
NoContractCode
TooLargeContractState
UnknownAccessKey
ContractExecutionError
NoGlobalContractCode
InternalError
Trait Implementations§
Source§impl Clone for RpcQueryError
impl Clone for RpcQueryError
Source§fn clone(&self) -> RpcQueryError
fn clone(&self) -> RpcQueryError
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 RpcQueryError
impl Debug for RpcQueryError
Source§impl<'de> Deserialize<'de> for RpcQueryError
impl<'de> Deserialize<'de> for RpcQueryError
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<&RpcQueryError> for RpcQueryError
impl From<&RpcQueryError> for RpcQueryError
Source§fn from(value: &RpcQueryError) -> Self
fn from(value: &RpcQueryError) -> Self
Converts to this type from the input type.
Source§impl From<RpcQueryError> for ErrorWrapperForRpcQueryError
impl From<RpcQueryError> for ErrorWrapperForRpcQueryError
Source§fn from(value: RpcQueryError) -> Self
fn from(value: RpcQueryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcQueryError
impl RefUnwindSafe for RpcQueryError
impl Send for RpcQueryError
impl Sync for RpcQueryError
impl Unpin for RpcQueryError
impl UnwindSafe for RpcQueryError
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