pub struct APIClient<P: Provider> {
pub v1_chain: ChainAPI<P>,
}Fields§
§v1_chain: ChainAPI<P>Implementations§
Source§impl<P: Provider> APIClient<P>
impl<P: Provider> APIClient<P>
pub fn default_provider( base_url: String, ) -> Result<APIClient<DefaultProvider>, String>
pub fn custom_provider(provider: P) -> Result<Self, String>
pub async fn transact( &self, actions: Vec<Action>, private_key: PrivateKey, ) -> Result<SendTransactionResponse, ClientError<SendTransactionResponseError>>
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for APIClient<P>where
P: Freeze,
impl<P> RefUnwindSafe for APIClient<P>where
P: RefUnwindSafe,
impl<P> Send for APIClient<P>
impl<P> Sync for APIClient<P>
impl<P> Unpin for APIClient<P>where
P: Unpin,
impl<P> UnwindSafe for APIClient<P>where
P: 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