Struct near_api_tokio::JsonRpcClient [−][src]
Fields
server_addr: Stringclient: ClientImplementations
Creates a new RPC client backed by the given transport implementation.
pub async fn broadcast_tx_commit(
&self,
tx: String
) -> Result<FinalExecutionOutcomeView, RpcError>
pub async fn tx(
&self,
hash: String,
account_id: AccountId
) -> Result<FinalExecutionOutcomeView, RpcError>
pub async fn validators(
&self,
block_id: MaybeBlockId
) -> Result<EpochValidatorInfo, RpcError>
pub async fn query_by_path(
&self,
path: String,
data: String
) -> Result<RpcQueryResponse, RpcError>
pub async fn query_by_path(
&self,
path: String,
data: String
) -> Result<RpcQueryResponse, RpcError>
This is a soft-deprecated method to do query RPC request with a path and data positional parameters.
pub async fn EXPERIMENTAL_changes(
&self,
request: RpcStateChangesInBlockByTypeRequest
) -> Result<RpcStateChangesInBlockByTypeResponse, RpcError>
pub async fn EXPERIMENTAL_validators_ordered(
&self,
request: RpcValidatorsOrderedRequest
) -> Result<Vec<ValidatorStakeView>, RpcError>
pub async fn EXPERIMENTAL_receipt(
&self,
request: RpcReceiptRequest
) -> Result<RpcReceiptResponse, RpcError>
pub async fn EXPERIMENTAL_protocol_config(
&self,
request: RpcProtocolConfigRequest
) -> Result<RpcProtocolConfigResponse, RpcError>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for JsonRpcClient
impl Send for JsonRpcClient
impl Sync for JsonRpcClient
impl Unpin for JsonRpcClient
impl !UnwindSafe for JsonRpcClient
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more