Struct anchor_client::RequestBuilder
source · pub struct RequestBuilder<'a, C> { /* private fields */ }Expand description
RequestBuilder provides a builder interface to create and send
transactions to a cluster.
Implementations§
source§impl<'a, C: Deref<Target = impl Signer> + Clone> RequestBuilder<'a, C>
impl<'a, C: Deref<Target = impl Signer> + Clone> RequestBuilder<'a, C>
pub fn from( program_id: Pubkey, cluster: &str, payer: C, options: Option<CommitmentConfig> ) -> Self
pub fn payer(self, payer: C) -> Self
pub fn cluster(self, url: &str) -> Self
pub fn instruction(self, ix: Instruction) -> Self
pub fn program(self, program_id: Pubkey) -> Self
pub fn accounts(self, accounts: impl ToAccountMetas) -> Self
pub fn options(self, options: CommitmentConfig) -> Self
pub fn args(self, args: impl InstructionData) -> Self
pub fn signer(self, signer: &'a dyn Signer) -> Self
pub fn instructions(&self) -> Result<Vec<Instruction>, ClientError>
pub fn signed_transaction(&self) -> Result<Transaction, ClientError>
pub fn transaction(&self) -> Result<Transaction, ClientError>
pub fn send(self) -> Result<Signature, ClientError>
pub fn send_with_spinner_and_config( self, config: RpcSendTransactionConfig ) -> Result<Signature, ClientError>
Auto Trait Implementations§
impl<'a, C> !RefUnwindSafe for RequestBuilder<'a, C>
impl<'a, C> !Send for RequestBuilder<'a, C>
impl<'a, C> !Sync for RequestBuilder<'a, C>
impl<'a, C> Unpin for RequestBuilder<'a, C>where C: Unpin,
impl<'a, C> !UnwindSafe for RequestBuilder<'a, C>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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