Warp Object
Warp (Bloxroute BDN) global object.
Warp Class Documentation
The Warp
class provides methods for interacting with Solana blockchain transactions, focusing on submitting transactions and retrieving tip statistics. It integrates with the Roboqo client for efficient communication and transaction handling.
Methods
submitTransaction
Description Submits a single transaction to the Solana blockchain.
Signature
Parameters
transaction
(Transaction | VersionedTransaction
): The transaction to submit.options
({ skipPreFlight?: boolean }
): Optional. Indicates whether to skip the pre-flight check. Default isfalse
.
Returns
Promise<SolanaTransaction>
: An object representing the submitted transaction, including the signature.
Example Usage
submitTransactions
Description Submits multiple transactions to the Solana blockchain.
Signature
Parameters
request
(SubmitTransactionsRequest
): An object containing:transactions
((Transaction | VersionedTransaction)[]
): An array of transactions to submit.skipPreFlight
(boolean
): Optional. Indicates whether to skip the pre-flight check.
Returns
Promise<SolanaBundle>
: An object containing the signatures of the submitted transactions.
Example Usage
getTipStats
Description Retrieves statistical data about transaction tips on Solana, including percentiles and slot information.
Signature
Returns
Promise<WarpTipStats>
: An object containing statistics about transaction tips.
Example Usage
Types
WarpTipStats
Represents statistical data about transaction tips.
Fields
id
(number
): Identifier for the tip statistics.p25
(number
): 25th percentile of transaction tips.p50
(number
): Median (50th percentile) of transaction tips.p75
(number
): 75th percentile of transaction tips.p95
(number
): 95th percentile of transaction tips.p99
(number
): 99th percentile of transaction tips.slot
(number
): The Solana blockchain slot associated with the statistics.
Last updated