pub struct UtilsApi<'a> { /* private fields */ }Expand description
API for utility and contract operations
Implementations§
Source§impl<'a> UtilsApi<'a>
impl<'a> UtilsApi<'a>
pub fn new(client: &'a Client) -> Self
Sourcepub async fn run_contract_function(
&self,
address: &str,
request: &RunContractFunctionRequest,
query: Option<&UtilsQuery>,
) -> Result<Value>
pub async fn run_contract_function( &self, address: &str, request: &RunContractFunctionRequest, query: Option<&UtilsQuery>, ) -> Result<Value>
Run a read-only contract function
Sourcepub async fn get_web3_version(&self) -> Result<Web3Version>
pub async fn get_web3_version(&self) -> Result<Web3Version>
Get web3 API version
Sourcepub async fn get_endpoint_weights(&self) -> Result<Vec<EndpointWeight>>
pub async fn get_endpoint_weights(&self) -> Result<Vec<EndpointWeight>>
Get endpoint weights/costs
Sourcepub async fn get_contract_events(
&self,
address: &str,
request: &GetContractEventsRequest,
query: Option<&UtilsQuery>,
) -> Result<ContractEventsResponse>
pub async fn get_contract_events( &self, address: &str, request: &GetContractEventsRequest, query: Option<&UtilsQuery>, ) -> Result<ContractEventsResponse>
Get contract events by topic
Sourcepub async fn get_contract_logs(
&self,
address: &str,
query: Option<&UtilsQuery>,
) -> Result<ContractEventsResponse>
pub async fn get_contract_logs( &self, address: &str, query: Option<&UtilsQuery>, ) -> Result<ContractEventsResponse>
Get contract logs
Sourcepub async fn review_contracts(
&self,
request: &ContractReviewRequest,
) -> Result<Vec<ContractReview>>
pub async fn review_contracts( &self, request: &ContractReviewRequest, ) -> Result<Vec<ContractReview>>
Review contracts for security and verification status
Auto Trait Implementations§
impl<'a> Freeze for UtilsApi<'a>
impl<'a> !RefUnwindSafe for UtilsApi<'a>
impl<'a> Send for UtilsApi<'a>
impl<'a> Sync for UtilsApi<'a>
impl<'a> Unpin for UtilsApi<'a>
impl<'a> !UnwindSafe for UtilsApi<'a>
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