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

Description Retrieves the position associated with this transaction.

Signature

public getPosition(): SolanaPosition

Parameters

  • None.

Returns

  • SolanaPosition: A SolanaPosition instance associated with this transaction.


isLanded

Description 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

Description Retrieves the transaction signature.

Signature

public getSignature(): string

Parameters

  • None.

Returns

  • string: The transaction signature.


getTransaction

Description 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 a RoboqoTransaction instance.

Throws

  • Error: If the transaction cannot be retrieved or is not found.

Last updated