Struct diem_rest_client::Client [−][src]
pub struct Client { /* fields omitted */ }Implementations
pub async fn get_account_balances(
&self,
address: AccountAddress
) -> Result<Response<Vec<AccountBalance>>>
pub async fn wait_for_transaction(
&self,
pending_transaction: &PendingTransaction
) -> Result<Response<Transaction>>
pub async fn wait_for_signed_transaction(
&self,
transaction: &SignedTransaction
) -> Result<Response<Transaction>>
pub async fn wait_for_transaction_by_hash(
&self,
hash: HashValue,
expiration_timestamp_secs: u64
) -> Result<Response<Transaction>>
pub async fn get_transactions(
&self,
start: Option<u64>,
limit: Option<u64>
) -> Result<Response<Vec<Transaction>>>
pub async fn get_account_transactions(
&self,
address: AccountAddress,
start: Option<u64>,
limit: Option<u64>
) -> Result<Response<Vec<Transaction>>>
pub async fn get_account_resources(
&self,
address: AccountAddress
) -> Result<Response<Vec<Resource>>>
pub async fn get_account_resources_by_type(
&self,
address: AccountAddress,
module_address: AccountAddress,
module_id: &Identifier,
struct_name: &Identifier
) -> Result<Response<Vec<Resource>>>
pub async fn get_resource<T: DeserializeOwned>(
&self,
address: AccountAddress,
resource_type: &StructTag
) -> Result<Response<T>>
pub async fn get_account_resource(
&self,
address: AccountAddress,
resource_type: &StructTag
) -> Result<Response<Option<Value>>>
pub async fn get_account_modules(
&self,
address: AccountAddress
) -> Result<Response<Vec<MoveModuleBytecode>>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self