pub struct RpcProvider { /* private fields */ }Implementations§
Source§impl RpcProvider
impl RpcProvider
pub fn new(url: &str) -> Self
pub async fn get_chain_info(&self) -> Result<ChainInfo>
pub async fn get_balance(&self, address: &Address) -> Result<BalanceInfo>
pub async fn send_raw_transaction(&self, tx_hex: &str) -> Result<String>
pub async fn list_proposals(&self) -> Result<Vec<GovernanceProposal>>
pub async fn get_code(&self, address: &Address) -> Result<ContractCode>
pub async fn get_storage_at( &self, address: &Address, key: &str, ) -> Result<StorageValue>
Auto Trait Implementations§
impl Freeze for RpcProvider
impl !RefUnwindSafe for RpcProvider
impl Send for RpcProvider
impl Sync for RpcProvider
impl Unpin for RpcProvider
impl UnsafeUnpin for RpcProvider
impl !UnwindSafe for RpcProvider
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