Struct stacks_rpc_client::rpc_client::StacksRpc
source · pub struct StacksRpc {
pub url: String,
pub client: Client,
}
Fields§
§url: String
§client: Client
Implementations§
source§impl StacksRpc
impl StacksRpc
pub fn new(url: &str) -> Self
pub fn estimate_transaction_fee( &self, transaction_payload: &TransactionPayload, priority: usize ) -> Result<u64, RpcError>
pub fn post_transaction( &self, transaction: &StacksTransaction ) -> Result<PostTransactionResult, RpcError>
pub fn get_nonce(&self, address: &str) -> Result<u64, RpcError>
pub fn get_pox_info(&self) -> Result<PoxInfo, RpcError>
pub fn get_info(&self) -> Result<NodeInfo, RpcError>
pub fn get_contract_source( &self, principal: &str, contract_name: &str ) -> Result<Contract, RpcError>
pub fn call_read_only_fn( &self, contract_addr: &str, contract_name: &str, method: &str, args: Vec<Value>, sender: &str ) -> Result<Value, RpcError>
Auto Trait Implementations§
impl !RefUnwindSafe for StacksRpc
impl Send for StacksRpc
impl Sync for StacksRpc
impl Unpin for StacksRpc
impl !UnwindSafe for StacksRpc
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