pub struct WakiRpc { /* private fields */ }Expand description
A Solana JSON-RPC client backed by waki (blocking wasi:http).
Implementations§
Source§impl WakiRpc
impl WakiRpc
Sourcepub fn new(endpoint: String, api_key: Option<String>) -> Self
pub fn new(endpoint: String, api_key: Option<String>) -> Self
Construct with an RPC endpoint URL and an optional API key. The key, if
present, is sent as Authorization: Bearer <key>. For providers that
embed the key in the URL path (Helius/QuickNode), leave api_key = None.
pub fn endpoint(&self) -> &str
pub fn api_key(&self) -> Option<&str>
Trait Implementations§
Source§impl Rpc for WakiRpc
impl Rpc for WakiRpc
fn get_latest_blockhash(&self) -> Result<BlockhashInfo, RpcError>
fn get_account_info( &self, pubkey: &Pubkey, ) -> Result<Option<AccountInfo>, RpcError>
fn get_signatures_for_address( &self, pubkey: &Pubkey, limit: usize, ) -> Result<Vec<TxSummary>, RpcError>
Auto Trait Implementations§
impl !Freeze for WakiRpc
impl RefUnwindSafe for WakiRpc
impl Send for WakiRpc
impl Sync for WakiRpc
impl Unpin for WakiRpc
impl UnsafeUnpin for WakiRpc
impl UnwindSafe for WakiRpc
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