Solana Transaction
SolanaTransaction Object Documentation
The SolanaTransaction class represents a Solana blockchain transaction within the Roboqo platform. It provides methods to track transaction confirmation status, retrieve transaction details, and associate transactions with positions.
Methods
getPosition
getPositionDescription Retrieves the position associated with this transaction.
Signature
public getPosition(): SolanaPositionParameters
None.
Returns
SolanaPosition: ASolanaPositioninstance associated with this transaction.
isLanded
isLandedDescription Waits until the transaction reaches the specified confirmation level.
Signature
public async isLanded(confirmationLevel: ConfirmationLevel = "confirmed"): Promise<TransactionUpdate>Parameters
confirmationLevel(ConfirmationLevel, optional): The required confirmation level. Defaults to"confirmed".
Returns
Promise<TransactionUpdate>: Resolves with the transaction update when the transaction reaches the required confirmation level.
Throws
Error: If the transaction times out.
getSignature
getSignatureDescription Retrieves the transaction signature.
Signature
public getSignature(): stringParameters
None.
Returns
string: The transaction signature.
getTransaction
getTransactionDescription Fetches the full transaction details from the Solana blockchain.
Signature
public async getTransaction(): Promise<RoboqoTransaction>Parameters
None.
Returns
Promise<RoboqoTransaction>: The transaction details wrapped in aRoboqoTransactioninstance.
Throws
Error: If the transaction cannot be retrieved or is not found.
Last updated