pub struct ChainAPI<T: Provider> { /* private fields */ }Implementations§
Source§impl<T: Provider> ChainAPI<T>
impl<T: Provider> ChainAPI<T>
pub fn new(provider: T) -> Self
pub async fn get_account( &self, account_name: String, ) -> Result<AccountObject, ClientError<ErrorResponse>>
pub async fn get_abi( &self, account_name: String, ) -> Result<ABIResponse, ClientError<ErrorResponse>>
pub async fn get_block( &self, block_num_or_id: String, ) -> Result<GetBlockResponse, ClientError<ErrorResponse>>
pub async fn get_info(&self) -> Result<GetInfoResponse, ClientError<()>>
pub async fn send_transaction( &self, trx: SignedTransaction, ) -> Result<SendTransactionResponse, ClientError<SendTransactionResponseError>>
pub async fn get_table_rows<P: Packer + Default>( &self, params: GetTableRowsParams, ) -> Result<GetTableRowsResponse<P>, ClientError<()>>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ChainAPI<T>where
T: Freeze,
impl<T> RefUnwindSafe for ChainAPI<T>where
T: RefUnwindSafe,
impl<T> Send for ChainAPI<T>
impl<T> Sync for ChainAPI<T>
impl<T> Unpin for ChainAPI<T>where
T: Unpin,
impl<T> UnwindSafe for ChainAPI<T>where
T: UnwindSafe,
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