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
getPosition
Description Retrieves the position associated with this transaction.
Signature
Parameters
None.
Returns
SolanaPosition
: ASolanaPosition
instance associated with this transaction.
isLanded
isLanded
Description Waits until the transaction reaches the specified confirmation level.
Signature
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
getSignature
Description Retrieves the transaction signature.
Signature
Parameters
None.
Returns
string
: The transaction signature.
getTransaction
getTransaction
Description Fetches the full transaction details from the Solana blockchain.
Signature
Parameters
None.
Returns
Promise<RoboqoTransaction>
: The transaction details wrapped in aRoboqoTransaction
instance.
Throws
Error
: If the transaction cannot be retrieved or is not found.
Last updated