Struct diem_client::BlockingClient [−][src]
pub struct BlockingClient { /* fields omitted */ }
Implementations
pub fn wait_for_signed_transaction(
&self,
txn: &SignedTransaction,
timeout: Option<Duration>,
delay: Option<Duration>
) -> Result<Response<TransactionView>, WaitForTransactionError>
pub fn wait_for_transaction(
&self,
address: AccountAddress,
seq: u64,
expiration_time_secs: u64,
txn_hash: HashValue,
timeout: Option<Duration>,
delay: Option<Duration>
) -> Result<Response<TransactionView>, WaitForTransactionError>
pub fn batch(
&self,
requests: Vec<MethodRequest>
) -> Result<Vec<Result<Response<MethodResponse>>>>
pub fn get_account_by_version(
&self,
address: AccountAddress,
version: u64
) -> Result<Response<Option<AccountView>>>
pub fn get_transactions(
&self,
start_seq: u64,
limit: u64,
include_events: bool
) -> Result<Response<Vec<TransactionView>>>
pub fn get_account_transaction(
&self,
address: AccountAddress,
seq: u64,
include_events: bool
) -> Result<Response<Option<TransactionView>>>
pub fn get_account_transactions(
&self,
address: AccountAddress,
start_seq: u64,
limit: u64,
include_events: bool
) -> Result<Response<Vec<TransactionView>>>
pub fn get_events(
&self,
key: EventKey,
start_seq: u64,
limit: u64
) -> Result<Response<Vec<EventView>>>
pub fn get_accumulator_consistency_proof(
&self,
client_known_version: Option<u64>,
ledger_version: Option<u64>
) -> Result<Response<AccumulatorConsistencyProofView>>
pub fn get_account_state_with_proof(
&self,
address: AccountAddress,
from_version: Option<u64>,
to_version: Option<u64>
) -> Result<Response<AccountStateWithProofView>>
pub fn get_transactions_with_proofs(
&self,
start_version: u64,
limit: u64,
include_events: bool
) -> Result<Response<Option<TransactionsWithProofsView>>>
pub fn get_account_transactions_with_proofs(
&self,
address: AccountAddress,
start_seq: u64,
limit: u64,
include_events: bool,
ledger_version: Option<u64>
) -> Result<Response<AccountTransactionsWithProofView>>
pub fn get_events_with_proofs(
&self,
key: EventKey,
start_seq: u64,
limit: u64
) -> Result<Response<Vec<EventWithProofView>>>
pub fn get_event_by_version_with_proof(
&self,
key: EventKey,
version: Option<u64>
) -> Result<Response<EventByVersionWithProofView>>
pub fn get_deserialized_events<T: MoveStructType + DeserializeOwned>(
&self,
event_key: &EventKey,
start_seq: u64,
limit: u64
) -> Result<Response<Vec<Event<T>>>>
pub fn get_deserialized_events<T: MoveStructType + DeserializeOwned>(
&self,
event_key: &EventKey,
start_seq: u64,
limit: u64
) -> Result<Response<Vec<Event<T>>>>
Return the events of type T
that have been emitted to event_key
since start_seq
, with a max of limit
results
Returns an empty vector if there are no such event
The type T
must match the event types associated with event_key
pub fn get_deserialized_resource<T: MoveResource>(
&self,
address: AccountAddress
) -> Result<Response<Option<T>>>
pub fn get_deserialized_resource<T: MoveResource>(
&self,
address: AccountAddress
) -> Result<Response<Option<T>>>
Deserialize and return the resource value of type T
stored under address
Returns None if there is no such value
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BlockingClient
impl Send for BlockingClient
impl Sync for BlockingClient
impl Unpin for BlockingClient
impl UnwindSafe for BlockingClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. 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