Skip to main content

Module transaction_cost

Module transaction_cost 

Source
Expand description

Opt-in transaction fee, compute-budget, and relay-tip parsing.

These functions are intentionally separate from DEX event parsing. Callers that do not request transaction costs incur no instruction scan.

Structs§

SwqosTipAccountGroup
A provider and all tip accounts accepted by that provider.
TipPayment
TransactionCost

Enums§

SwqosProvider
SWQoS providers supported by sol-trade-sdk.

Constants§

ASTRALANE_TIP_ACCOUNTS
BLOCKRAZOR_TIP_ACCOUNTS
BLOX_TIP_ACCOUNTS
FLASHBLOCK_TIP_ACCOUNTS
GLAIVE_TIP_ACCOUNTS
HELIUS_TIP_ACCOUNTS
JITO_TIP_ACCOUNTS
Official Jito block-engine tip accounts used by sol-trade-sdk.
LIGHTSPEED_TIP_ACCOUNTS
LUNARLANDER_TIP_ACCOUNTS
NEXTBLOCK_TIP_ACCOUNTS
NODE1_TIP_ACCOUNTS
NOZOMI_TIP_ACCOUNTS
SOLAMI_TIP_ACCOUNTS
SOYAS_TIP_ACCOUNTS
SPEEDLANDING_TIP_ACCOUNTS
STELLIUM_TIP_ACCOUNTS
SWQOS_TIP_ACCOUNT_GROUPS
Complete provider-aware tip registry mirrored from sol-trade-sdk.
ZEROSLOT_TIP_ACCOUNTS

Functions§

parse_rpc_transaction_cost
Parses costs from a base64-encoded RPC transaction response.
parse_shred_transaction_cost
Parses requested compute budget and outer relay tips from a ShredStream transaction. Transaction status metadata and ALT-loaded addresses are not present in shred entries, so fee and consumed-CU fields remain None and tips whose recipient is ALT-loaded cannot be recognized.
parse_yellowstone_transaction_cost
Parses costs from a Yellowstone transaction, including ALT-loaded accounts and inner System Program transfers. Returns None when the transaction message is absent.