Struct cosmos_client::client::RpcClient
source · pub struct RpcClient {Show 14 fields
pub bank: BankModule,
pub auth: AuthModule,
pub authz: AuthzModule,
pub distribution: DistributionModule,
pub evidence: EvidenceModule,
pub feegrant: FeeGrantModule,
pub gov: GovModule,
pub mint: MintModule,
pub params: ParamsModule,
pub slashing: SlashingModule,
pub staking: StakingModule,
pub tx: TxModule,
pub upgrade: UpgradeModule,
pub wasm: WasmModule,
/* private fields */
}Fields§
§bank: BankModule§auth: AuthModule§authz: AuthzModule§distribution: DistributionModule§evidence: EvidenceModule§feegrant: FeeGrantModule§gov: GovModule§mint: MintModule§params: ParamsModule§slashing: SlashingModule§staking: StakingModule§tx: TxModule§upgrade: UpgradeModule§wasm: WasmModuleImplementations§
source§impl RpcClient
impl RpcClient
pub async fn new(url: &str) -> Result<Self, CosmosClientError>
pub async fn attach_signer( &mut self, signer: Signer ) -> Result<(), CosmosClientError>
pub async fn update_sequence_id(&mut self) -> Result<(), CosmosClientError>
pub async fn sign(&mut self, tx: CosmosTx) -> Result<Vec<u8>, CosmosClientError>
pub async fn broadcast( &mut self, payload: Vec<u8>, mode: BroadcastMode ) -> Result<TxResponse, CosmosClientError>
pub async fn sign_and_broadcast( &mut self, tx: CosmosTx, mode: BroadcastMode ) -> Result<TxResponse, CosmosClientError>
pub async fn send( &mut self, to: &str, coin: Vec<Coin>, memo: Option<String> ) -> Result<TxResponse, CosmosClientError>
Auto Trait Implementations§
impl !RefUnwindSafe for RpcClient
impl !Send for RpcClient
impl !Sync for RpcClient
impl Unpin for RpcClient
impl !UnwindSafe for RpcClient
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request