pub struct SendTxResponse {
pub transaction_hash: CryptoHash,
pub sender_id: AccountId,
}Expand description
Response returned for non-executed wait levels.
When you use a non-executed wait level (Submitted,
Included, IncludedFinal),
the transaction hasn’t been executed yet so there’s no outcome to return.
This type gives you the information needed to poll for the result later
via Near::tx_status.
§Example
let response = near.transfer("bob.testnet", NearToken::from_near(1))
.wait_until(Included)
.await?;
// Later, poll for the full outcome:
let outcome = near.tx_status(
&response.transaction_hash,
&response.sender_id,
Final,
).await?;Fields§
§transaction_hash: CryptoHashHash of the submitted transaction.
sender_id: AccountIdAccount ID of the transaction signer.
Trait Implementations§
Source§impl Clone for SendTxResponse
impl Clone for SendTxResponse
Source§fn clone(&self) -> SendTxResponse
fn clone(&self) -> SendTxResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SendTxResponse
impl RefUnwindSafe for SendTxResponse
impl Send for SendTxResponse
impl Sync for SendTxResponse
impl Unpin for SendTxResponse
impl UnsafeUnpin for SendTxResponse
impl UnwindSafe for SendTxResponse
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