NEW: Solana Privacy Rings are now live on mainnet

Solana Data APIs

Orca Whirlpool Program Data API

Explore decoded instructions, events, and account roles for Orca Whirlpool Program.

Program ID
whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc
GET PROGRAM INFO

describeProgram

Call describeProgram to get a parsed list of instructions, accounts, and roles for Orca Whirlpool Program and 3,600+ Solana programs.

describeProgram request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "describeProgram",
  "params": [
    {
      "program": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"
    }
  ]
}

Copyable examples

Stream Orca Whirlpool Program data

Subscribe using the Orca Whirlpool Program program ID and filter results by instructions, accounts, account roles, failed transactions, or CPIs.

Parsed Streams subscription
const ws = new WebSocket(
  "wss://beta.helius-rpc.com/?api-key=YOUR_API_KEY",
);

ws.addEventListener("open", () => {
  ws.send(JSON.stringify({
    jsonrpc: "2.0",
    id: 1,
    method: "parsedTransactionSubscribe",
    params: [{
      programs: ["whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"],
      instructionNames: ["close_bundled_position"],
      includeFailed: false,
      includeCpi: true,
    }],
  }));
});

Runtime vocabulary

Instructions (66)

Instruction names are the exact runtime names returned by Helius describeProgram. Argument and account schema details appear only when they map unambiguously to the raw IDL.

Showing all 66 instructions

close_bundled_position Expand

Arguments

NameType
bundle_indexu16

Accounts

  • bundled_position
    Writable
  • position_bundle
    Writable
  • position_bundle_token_account
    Read-only
  • position_bundle_authority
    Read-onlySigner
  • receiver
    Writable
  • whirlpool_program
    Read-only
close_position Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • position_authority
    Read-onlySigner
  • receiver
    Writable
  • position
    Writable
  • position_mint
    Writable
  • position_token_account
    Writable
  • token_program
    Read-only
  • whirlpool_program
    Read-only
close_position_with_token_extensions Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • position_authority
    Read-onlySigner
  • receiver
    Writable
  • position
    Writable
  • position_mint
    Writable
  • position_token_account
    Writable
  • token_2022_program
    Read-only
  • whirlpool_program
    Read-only
collect_fees Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpool
    Read-only
  • position_authority
    Read-onlySigner
  • position
    Writable
  • position_token_account
    Read-only
  • token_owner_account_a
    Writable
  • token_vault_a
    Writable
  • token_owner_account_b
    Writable
  • token_vault_b
    Writable
  • token_program
    Read-only
  • whirlpool_program
    Read-only
collect_fees_v2 Expand

Arguments

NameType
remaining_accounts_infoRemainingAccountsInfo | null

Accounts

  • whirlpool
    Read-only
  • position_authority
    Read-onlySigner
  • position
    Writable
  • position_token_account
    Read-only
  • token_mint_a
    Read-only
  • token_mint_b
    Read-only
  • token_owner_account_a
    Writable
  • token_vault_a
    Writable
  • token_owner_account_b
    Writable
  • token_vault_b
    Writable
  • token_program_a
    Read-only
  • token_program_b
    Read-only
  • memo_program
    Read-only
  • whirlpool_program
    Read-only
collect_protocol_fees Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpools_config
    Read-only
  • whirlpool
    Writable
  • collect_protocol_fees_authority
    Read-onlySigner
  • token_vault_a
    Writable
  • token_vault_b
    Writable
  • token_destination_a
    Writable
  • token_destination_b
    Writable
  • token_program
    Read-only
  • whirlpool_program
    Read-only
collect_protocol_fees_v2 Expand

Arguments

NameType
remaining_accounts_infoRemainingAccountsInfo | null

Accounts

  • whirlpools_config
    Read-only
  • whirlpool
    Writable
  • collect_protocol_fees_authority
    Read-onlySigner
  • token_mint_a
    Read-only
  • token_mint_b
    Read-only
  • token_vault_a
    Writable
  • token_vault_b
    Writable
  • token_destination_a
    Writable
  • token_destination_b
    Writable
  • token_program_a
    Read-only
  • token_program_b
    Read-only
  • memo_program
    Read-only
  • whirlpool_program
    Read-only
collect_reward Expand

Arguments

NameType
reward_indexu8

Accounts

  • whirlpool
    Read-only
  • position_authority
    Read-onlySigner
  • position
    Writable
  • position_token_account
    Read-only
  • reward_owner_account
    Writable
  • reward_vault
    Writable
  • token_program
    Read-only
  • whirlpool_program
    Read-only
collect_reward_v2 Expand

Arguments

NameType
reward_indexu8
remaining_accounts_infoRemainingAccountsInfo | null

Accounts

  • whirlpool
    Read-only
  • position_authority
    Read-onlySigner
  • position
    Writable
  • position_token_account
    Read-only
  • reward_owner_account
    Writable
  • reward_mint
    Read-only
  • reward_vault
    Writable
  • reward_token_program
    Read-only
  • memo_program
    Read-only
  • whirlpool_program
    Read-only
decrease_liquidity Expand

Arguments

NameType
liquidity_amountu128
token_min_au64
token_min_bu64

Accounts

  • whirlpool
    Writable
  • token_program
    Read-only
  • position_authority
    Read-onlySigner
  • position
    Writable
  • position_token_account
    Read-only
  • token_owner_account_a
    Writable
  • token_owner_account_b
    Writable
  • token_vault_a
    Writable
  • token_vault_b
    Writable
  • tick_array_lower
    Writable
  • tick_array_upper
    Writable
  • whirlpool_program
    Read-only
decrease_liquidity_v2 Expand

Arguments

NameType
liquidity_amountu128
token_min_au64
token_min_bu64
remaining_accounts_infoRemainingAccountsInfo | null

Accounts

  • whirlpool
    Writable
  • token_program_a
    Read-only
  • token_program_b
    Read-only
  • memo_program
    Read-only
  • position_authority
    Read-onlySigner
  • position
    Writable
  • position_token_account
    Read-only
  • token_mint_a
    Read-only
  • token_mint_b
    Read-only
  • token_owner_account_a
    Writable
  • token_owner_account_b
    Writable
  • token_vault_a
    Writable
  • token_vault_b
    Writable
  • tick_array_lower
    Writable
  • tick_array_upper
    Writable
  • whirlpool_program
    Read-only
delete_position_bundle Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • position_bundle
    Writable
  • position_bundle_mint
    Writable
  • position_bundle_token_account
    Writable
  • position_bundle_owner
    Read-onlySigner
  • receiver
    Writable
  • token_program
    Read-only
  • whirlpool_program
    Read-only
delete_token_badge Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpools_config
    Read-only
  • whirlpools_config_extension
    Read-only
  • token_badge_authority
    Read-onlySigner
  • token_mint
    Read-only
  • token_badge
    Writable
  • receiver
    Writable
  • whirlpool_program
    Read-only
idl_include Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • tick_array
    Read-only
  • system_program
    Read-only
  • whirlpool_program
    Read-only
increase_liquidity Expand

Arguments

NameType
liquidity_amountu128
token_max_au64
token_max_bu64

Accounts

  • whirlpool
    Writable
  • token_program
    Read-only
  • position_authority
    Read-onlySigner
  • position
    Writable
  • position_token_account
    Read-only
  • token_owner_account_a
    Writable
  • token_owner_account_b
    Writable
  • token_vault_a
    Writable
  • token_vault_b
    Writable
  • tick_array_lower
    Writable
  • tick_array_upper
    Writable
  • whirlpool_program
    Read-only
increase_liquidity_by_token_amounts_v2 Expand

Arguments

NameType
methodIncreaseLiquidityMethod
remaining_accounts_infoRemainingAccountsInfo | null

Accounts

  • whirlpool
    Writable
  • token_program_a
    Read-only
  • token_program_b
    Read-only
  • memo_program
    Read-only
  • position_authority
    Read-onlySigner
  • position
    Writable
  • position_token_account
    Read-only
  • token_mint_a
    Read-only
  • token_mint_b
    Read-only
  • token_owner_account_a
    Writable
  • token_owner_account_b
    Writable
  • token_vault_a
    Writable
  • token_vault_b
    Writable
  • tick_array_lower
    Writable
  • tick_array_upper
    Writable
  • whirlpool_program
    Read-only
increase_liquidity_v2 Expand

Arguments

NameType
liquidity_amountu128
token_max_au64
token_max_bu64
remaining_accounts_infoRemainingAccountsInfo | null

Accounts

  • whirlpool
    Writable
  • token_program_a
    Read-only
  • token_program_b
    Read-only
  • memo_program
    Read-only
  • position_authority
    Read-onlySigner
  • position
    Writable
  • position_token_account
    Read-only
  • token_mint_a
    Read-only
  • token_mint_b
    Read-only
  • token_owner_account_a
    Writable
  • token_owner_account_b
    Writable
  • token_vault_a
    Writable
  • token_vault_b
    Writable
  • tick_array_lower
    Writable
  • tick_array_upper
    Writable
  • whirlpool_program
    Read-only
initialize_adaptive_fee_tier Expand

Arguments

NameType
fee_tier_indexu16
tick_spacingu16
initialize_pool_authoritypubkey
delegated_fee_authoritypubkey
default_base_fee_rateu16
filter_periodu16
decay_periodu16
reduction_factoru16
adaptive_fee_control_factoru32
max_volatility_accumulatoru32
tick_group_sizeu16
major_swap_threshold_ticksu16

Accounts

  • whirlpools_config
    Read-only
  • adaptive_fee_tier
    Writable
  • funder
    WritableSigner
  • fee_authority
    Read-onlySigner
  • system_program
    Read-only
  • whirlpool_program
    Read-only
initialize_config Expand

Arguments

NameType
fee_authoritypubkey
collect_protocol_fees_authoritypubkey
reward_emissions_super_authoritypubkey
default_protocol_fee_rateu16

Accounts

  • config
    WritableSigner
  • funder
    WritableSigner
  • system_program
    Read-only
  • whirlpool_program
    Read-only
initialize_config_extension Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • config
    Read-only
  • config_extension
    Writable
  • funder
    WritableSigner
  • fee_authority
    Read-onlySigner
  • system_program
    Read-only
  • whirlpool_program
    Read-only
initialize_dynamic_tick_array Expand

Arguments

NameType
start_tick_indexi32
idempotentbool

Accounts

  • whirlpool
    Read-only
  • funder
    WritableSigner
  • tick_array
    Writable
  • system_program
    Read-only
  • whirlpool_program
    Read-only
initialize_fee_tier Expand

Arguments

NameType
tick_spacingu16
default_fee_rateu16

Accounts

  • config
    Read-only
  • fee_tier
    Writable
  • funder
    WritableSigner
  • fee_authority
    Read-onlySigner
  • system_program
    Read-only
  • whirlpool_program
    Read-only
initialize_pool Expand

Arguments

NameType
bumpsWhirlpoolBumps
tick_spacingu16
initial_sqrt_priceu128

Accounts

  • whirlpools_config
    Read-only
  • token_mint_a
    Read-only
  • token_mint_b
    Read-only
  • funder
    WritableSigner
  • whirlpool
    Writable
  • token_vault_a
    WritableSigner
  • token_vault_b
    WritableSigner
  • fee_tier
    Read-only
  • token_program
    Read-only
  • system_program
    Read-only
  • rent
    Read-only
  • whirlpool_program
    Read-only
initialize_pool_v2 Expand

Arguments

NameType
tick_spacingu16
initial_sqrt_priceu128

Accounts

  • whirlpools_config
    Read-only
  • token_mint_a
    Read-only
  • token_mint_b
    Read-only
  • token_badge_a
    Read-only
  • token_badge_b
    Read-only
  • funder
    WritableSigner
  • whirlpool
    Writable
  • token_vault_a
    WritableSigner
  • token_vault_b
    WritableSigner
  • fee_tier
    Read-only
  • token_program_a
    Read-only
  • token_program_b
    Read-only
  • system_program
    Read-only
  • rent
    Read-only
  • whirlpool_program
    Read-only
initialize_pool_with_adaptive_fee Expand

Arguments

NameType
initial_sqrt_priceu128
trade_enable_timestampu64 | null

Accounts

  • whirlpools_config
    Read-only
  • token_mint_a
    Read-only
  • token_mint_b
    Read-only
  • token_badge_a
    Read-only
  • token_badge_b
    Read-only
  • funder
    WritableSigner
  • initialize_pool_authority
    Read-onlySigner
  • whirlpool
    Writable
  • oracle
    Writable
  • token_vault_a
    WritableSigner
  • token_vault_b
    WritableSigner
  • adaptive_fee_tier
    Read-only
  • token_program_a
    Read-only
  • token_program_b
    Read-only
  • system_program
    Read-only
  • rent
    Read-only
  • whirlpool_program
    Read-only
initialize_position_bundle Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • position_bundle
    Writable
  • position_bundle_mint
    WritableSigner
  • position_bundle_token_account
    Writable
  • position_bundle_owner
    Read-only
  • funder
    WritableSigner
  • token_program
    Read-only
  • system_program
    Read-only
  • rent
    Read-only
  • associated_token_program
    Read-only
  • whirlpool_program
    Read-only
initialize_position_bundle_with_metadata Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • position_bundle
    Writable
  • position_bundle_mint
    WritableSigner
  • position_bundle_metadata
    Writable
  • position_bundle_token_account
    Writable
  • position_bundle_owner
    Read-only
  • funder
    WritableSigner
  • metadata_update_auth
    Read-only
  • token_program
    Read-only
  • system_program
    Read-only
  • rent
    Read-only
  • associated_token_program
    Read-only
  • metadata_program
    Read-only
  • whirlpool_program
    Read-only
initialize_reward Expand

Arguments

NameType
reward_indexu8

Accounts

  • reward_authority
    Read-onlySigner
  • funder
    WritableSigner
  • whirlpool
    Writable
  • reward_mint
    Read-only
  • reward_vault
    WritableSigner
  • token_program
    Read-only
  • system_program
    Read-only
  • rent
    Read-only
  • whirlpool_program
    Read-only
initialize_reward_v2 Expand

Arguments

NameType
reward_indexu8

Accounts

  • reward_authority
    Read-onlySigner
  • funder
    WritableSigner
  • whirlpool
    Writable
  • reward_mint
    Read-only
  • reward_token_badge
    Read-only
  • reward_vault
    WritableSigner
  • reward_token_program
    Read-only
  • system_program
    Read-only
  • rent
    Read-only
  • whirlpool_program
    Read-only
initialize_tick_array Expand

Arguments

NameType
start_tick_indexi32

Accounts

  • whirlpool
    Read-only
  • funder
    WritableSigner
  • tick_array
    Writable
  • system_program
    Read-only
  • whirlpool_program
    Read-only
initialize_token_badge Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpools_config
    Read-only
  • whirlpools_config_extension
    Read-only
  • token_badge_authority
    Read-onlySigner
  • token_mint
    Read-only
  • token_badge
    Writable
  • funder
    WritableSigner
  • system_program
    Read-only
  • whirlpool_program
    Read-only
lock_position Expand

Arguments

NameType
lock_typeLockType

Accounts

  • funder
    WritableSigner
  • position_authority
    Read-onlySigner
  • position
    Read-only
  • position_mint
    Read-only
  • position_token_account
    Writable
  • lock_config
    Writable
  • whirlpool
    Read-only
  • token_2022_program
    Read-only
  • system_program
    Read-only
  • whirlpool_program
    Read-only
migrate_repurpose_reward_authority_space Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpool
    Writable
  • whirlpool_program
    Read-only
open_bundled_position Expand

Arguments

NameType
bundle_indexu16
tick_lower_indexi32
tick_upper_indexi32

Accounts

  • bundled_position
    Writable
  • position_bundle
    Writable
  • position_bundle_token_account
    Read-only
  • position_bundle_authority
    Read-onlySigner
  • whirlpool
    Read-only
  • funder
    WritableSigner
  • system_program
    Read-only
  • rent
    Read-only
  • whirlpool_program
    Read-only
open_position Expand

Arguments

NameType
bumpsOpenPositionBumps
tick_lower_indexi32
tick_upper_indexi32

Accounts

  • funder
    WritableSigner
  • owner
    Read-only
  • position
    Writable
  • position_mint
    WritableSigner
  • position_token_account
    Writable
  • whirlpool
    Read-only
  • token_program
    Read-only
  • system_program
    Read-only
  • rent
    Read-only
  • associated_token_program
    Read-only
  • whirlpool_program
    Read-only
open_position_with_metadata Expand

Arguments

NameType
bumpsOpenPositionWithMetadataBumps
tick_lower_indexi32
tick_upper_indexi32

Accounts

  • funder
    WritableSigner
  • owner
    Read-only
  • position
    Writable
  • position_mint
    WritableSigner
  • position_metadata_account
    Writable
  • position_token_account
    Writable
  • whirlpool
    Read-only
  • token_program
    Read-only
  • system_program
    Read-only
  • rent
    Read-only
  • associated_token_program
    Read-only
  • metadata_program
    Read-only
  • metadata_update_auth
    Read-only
  • whirlpool_program
    Read-only
open_position_with_token_extensions Expand

Arguments

NameType
tick_lower_indexi32
tick_upper_indexi32
with_token_metadata_extensionbool

Accounts

  • funder
    WritableSigner
  • owner
    Read-only
  • position
    Writable
  • position_mint
    WritableSigner
  • position_token_account
    Writable
  • whirlpool
    Read-only
  • token_2022_program
    Read-only
  • system_program
    Read-only
  • associated_token_program
    Read-only
  • metadata_update_auth
    Read-only
  • whirlpool_program
    Read-only
reposition_liquidity_v2 Expand

Arguments

NameType
new_tick_lower_indexi32
new_tick_upper_indexi32
methodRepositionLiquidityMethod
remaining_accounts_infoRemainingAccountsInfo | null

Accounts

  • whirlpool
    Writable
  • token_program_a
    Read-only
  • token_program_b
    Read-only
  • memo_program
    Read-only
  • position_authority
    Read-onlySigner
  • funder
    WritableSigner
  • position
    Writable
  • position_token_account
    Read-only
  • token_mint_a
    Read-only
  • token_mint_b
    Read-only
  • token_owner_account_a
    Writable
  • token_owner_account_b
    Writable
  • token_vault_a
    Writable
  • token_vault_b
    Writable
  • existing_tick_array_lower
    Writable
  • existing_tick_array_upper
    Writable
  • new_tick_array_lower
    Writable
  • new_tick_array_upper
    Writable
  • system_program
    Read-only
  • whirlpool_program
    Read-only
reset_position_range Expand

Arguments

NameType
new_tick_lower_indexi32
new_tick_upper_indexi32

Accounts

  • funder
    WritableSigner
  • position_authority
    Read-onlySigner
  • whirlpool
    Read-only
  • position
    Writable
  • position_token_account
    Read-only
  • system_program
    Read-only
  • whirlpool_program
    Read-only
set_adaptive_fee_constants Expand

Arguments

NameType
filter_periodu16 | null
decay_periodu16 | null
reduction_factoru16 | null
adaptive_fee_control_factoru32 | null
max_volatility_accumulatoru32 | null
tick_group_sizeu16 | null
major_swap_threshold_ticksu16 | null

Accounts

  • whirlpool
    Read-only
  • whirlpools_config
    Read-only
  • oracle
    Writable
  • fee_authority
    Read-onlySigner
  • whirlpool_program
    Read-only
set_collect_protocol_fees_authority Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpools_config
    Writable
  • collect_protocol_fees_authority
    Read-onlySigner
  • new_collect_protocol_fees_authority
    Read-only
  • whirlpool_program
    Read-only
set_config_extension_authority Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpools_config
    Read-only
  • whirlpools_config_extension
    Writable
  • config_extension_authority
    Read-onlySigner
  • new_config_extension_authority
    Read-only
  • whirlpool_program
    Read-only
set_config_feature_flag Expand

Arguments

NameType
feature_flagConfigFeatureFlag

Accounts

  • whirlpools_config
    Writable
  • authority
    Read-onlySigner
  • whirlpool_program
    Read-only
set_default_base_fee_rate Expand

Arguments

NameType
default_base_fee_rateu16

Accounts

  • whirlpools_config
    Read-only
  • adaptive_fee_tier
    Writable
  • fee_authority
    Read-onlySigner
  • whirlpool_program
    Read-only
set_default_fee_rate Expand

Arguments

NameType
default_fee_rateu16

Accounts

  • whirlpools_config
    Read-only
  • fee_tier
    Writable
  • fee_authority
    Read-onlySigner
  • whirlpool_program
    Read-only
set_default_protocol_fee_rate Expand

Arguments

NameType
default_protocol_fee_rateu16

Accounts

  • whirlpools_config
    Writable
  • fee_authority
    Read-onlySigner
  • whirlpool_program
    Read-only
set_delegated_fee_authority Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpools_config
    Read-only
  • adaptive_fee_tier
    Writable
  • fee_authority
    Read-onlySigner
  • new_delegated_fee_authority
    Read-only
  • whirlpool_program
    Read-only
set_fee_authority Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpools_config
    Writable
  • fee_authority
    Read-onlySigner
  • new_fee_authority
    Read-only
  • whirlpool_program
    Read-only
set_fee_rate Expand

Arguments

NameType
fee_rateu16

Accounts

  • whirlpools_config
    Read-only
  • whirlpool
    Writable
  • fee_authority
    Read-onlySigner
  • whirlpool_program
    Read-only
set_fee_rate_by_delegated_fee_authority Expand

Arguments

NameType
fee_rateu16

Accounts

  • whirlpool
    Writable
  • adaptive_fee_tier
    Read-only
  • delegated_fee_authority
    Read-onlySigner
  • whirlpool_program
    Read-only
set_initialize_pool_authority Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpools_config
    Read-only
  • adaptive_fee_tier
    Writable
  • fee_authority
    Read-onlySigner
  • new_initialize_pool_authority
    Read-only
  • whirlpool_program
    Read-only
set_preset_adaptive_fee_constants Expand

Arguments

NameType
filter_periodu16
decay_periodu16
reduction_factoru16
adaptive_fee_control_factoru32
max_volatility_accumulatoru32
tick_group_sizeu16
major_swap_threshold_ticksu16

Accounts

  • whirlpools_config
    Read-only
  • adaptive_fee_tier
    Writable
  • fee_authority
    Read-onlySigner
  • whirlpool_program
    Read-only
set_protocol_fee_rate Expand

Arguments

NameType
protocol_fee_rateu16

Accounts

  • whirlpools_config
    Read-only
  • whirlpool
    Writable
  • fee_authority
    Read-onlySigner
  • whirlpool_program
    Read-only
set_reward_authority Expand

Arguments

NameType
reward_indexu8

Accounts

  • whirlpool
    Writable
  • reward_authority
    Read-onlySigner
  • new_reward_authority
    Read-only
  • whirlpool_program
    Read-only
set_reward_authority_by_super_authority Expand

Arguments

NameType
reward_indexu8

Accounts

  • whirlpools_config
    Read-only
  • whirlpool
    Writable
  • reward_emissions_super_authority
    Read-onlySigner
  • new_reward_authority
    Read-only
  • whirlpool_program
    Read-only
set_reward_emissions Expand

Arguments

NameType
reward_indexu8
emissions_per_second_x64u128

Accounts

  • whirlpool
    Writable
  • reward_authority
    Read-onlySigner
  • reward_vault
    Read-only
  • whirlpool_program
    Read-only
set_reward_emissions_super_authority Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpools_config
    Writable
  • reward_emissions_super_authority
    Read-onlySigner
  • new_reward_emissions_super_authority
    Read-only
  • whirlpool_program
    Read-only
set_reward_emissions_v2 Expand

Arguments

NameType
reward_indexu8
emissions_per_second_x64u128

Accounts

  • whirlpool
    Writable
  • reward_authority
    Read-onlySigner
  • reward_vault
    Read-only
  • whirlpool_program
    Read-only
set_token_badge_attribute Expand

Arguments

NameType
attributeTokenBadgeAttribute

Accounts

  • whirlpools_config
    Read-only
  • whirlpools_config_extension
    Read-only
  • token_badge_authority
    Read-onlySigner
  • token_mint
    Read-only
  • token_badge
    Writable
  • whirlpool_program
    Read-only
set_token_badge_authority Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpools_config
    Read-only
  • whirlpools_config_extension
    Writable
  • config_extension_authority
    Read-onlySigner
  • new_token_badge_authority
    Read-only
  • whirlpool_program
    Read-only
swap Expand

Arguments

NameType
amountu64
other_amount_thresholdu64
sqrt_price_limitu128
amount_specified_is_inputbool
a_to_bbool

Accounts

  • token_program
    Read-only
  • token_authority
    Read-onlySigner
  • whirlpool
    Writable
  • token_owner_account_a
    Writable
  • token_vault_a
    Writable
  • token_owner_account_b
    Writable
  • token_vault_b
    Writable
  • tick_array_0
    Writable
  • tick_array_1
    Writable
  • tick_array_2
    Writable
  • oracle
    Read-only
  • whirlpool_program
    Read-only
swap_v2 Expand

Arguments

NameType
amountu64
other_amount_thresholdu64
sqrt_price_limitu128
amount_specified_is_inputbool
a_to_bbool
remaining_accounts_infoRemainingAccountsInfo | null

Accounts

  • token_program_a
    Read-only
  • token_program_b
    Read-only
  • memo_program
    Read-only
  • token_authority
    Read-onlySigner
  • whirlpool
    Writable
  • token_mint_a
    Read-only
  • token_mint_b
    Read-only
  • token_owner_account_a
    Writable
  • token_vault_a
    Writable
  • token_owner_account_b
    Writable
  • token_vault_b
    Writable
  • tick_array_0
    Writable
  • tick_array_1
    Writable
  • tick_array_2
    Writable
  • oracle
    Writable
  • whirlpool_program
    Read-only
transfer_locked_position Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • position_authority
    Read-onlySigner
  • receiver
    Writable
  • position
    Read-only
  • position_mint
    Read-only
  • position_token_account
    Writable
  • destination_token_account
    Writable
  • lock_config
    Writable
  • token_2022_program
    Read-only
  • whirlpool_program
    Read-only
two_hop_swap Expand

Arguments

NameType
amountu64
other_amount_thresholdu64
amount_specified_is_inputbool
a_to_b_onebool
a_to_b_twobool
sqrt_price_limit_oneu128
sqrt_price_limit_twou128

Accounts

  • token_program
    Read-only
  • token_authority
    Read-onlySigner
  • whirlpool_one
    Writable
  • whirlpool_two
    Writable
  • token_owner_account_one_a
    Writable
  • token_vault_one_a
    Writable
  • token_owner_account_one_b
    Writable
  • token_vault_one_b
    Writable
  • token_owner_account_two_a
    Writable
  • token_vault_two_a
    Writable
  • token_owner_account_two_b
    Writable
  • token_vault_two_b
    Writable
  • tick_array_one_0
    Writable
  • tick_array_one_1
    Writable
  • tick_array_one_2
    Writable
  • tick_array_two_0
    Writable
  • tick_array_two_1
    Writable
  • tick_array_two_2
    Writable
  • oracle_one
    Read-only
  • oracle_two
    Read-only
  • whirlpool_program
    Read-only
two_hop_swap_v2 Expand

Arguments

NameType
amountu64
other_amount_thresholdu64
amount_specified_is_inputbool
a_to_b_onebool
a_to_b_twobool
sqrt_price_limit_oneu128
sqrt_price_limit_twou128
remaining_accounts_infoRemainingAccountsInfo | null

Accounts

  • whirlpool_one
    Writable
  • whirlpool_two
    Writable
  • token_mint_input
    Read-only
  • token_mint_intermediate
    Read-only
  • token_mint_output
    Read-only
  • token_program_input
    Read-only
  • token_program_intermediate
    Read-only
  • token_program_output
    Read-only
  • token_owner_account_input
    Writable
  • token_vault_one_input
    Writable
  • token_vault_one_intermediate
    Writable
  • token_vault_two_intermediate
    Writable
  • token_vault_two_output
    Writable
  • token_owner_account_output
    Writable
  • token_authority
    Read-onlySigner
  • tick_array_one_0
    Writable
  • tick_array_one_1
    Writable
  • tick_array_one_2
    Writable
  • tick_array_two_0
    Writable
  • tick_array_two_1
    Writable
  • tick_array_two_2
    Writable
  • oracle_one
    Writable
  • oracle_two
    Writable
  • memo_program
    Read-only
  • whirlpool_program
    Read-only
update_fees_and_rewards Expand

Arguments

No unambiguous argument schema is available.

Accounts

  • whirlpool
    Writable
  • position
    Writable
  • tick_array_lower
    Read-only
  • tick_array_upper
    Read-only
  • whirlpool_program
    Read-only

Program-defined data

IDL events (6)

These are events defined by the Orca Whirlpool Program IDL.

LiquidityDecreased 9 fields
  • whirlpool pubkey
  • position pubkey
  • tick_lower_index i32
  • tick_upper_index i32
  • liquidity u128
  • token_a_amount u64
  • token_b_amount u64
  • token_a_transfer_fee u64
  • token_b_transfer_fee u64
LiquidityIncreased 9 fields
  • whirlpool pubkey
  • position pubkey
  • tick_lower_index i32
  • tick_upper_index i32
  • liquidity u128
  • token_a_amount u64
  • token_b_amount u64
  • token_a_transfer_fee u64
  • token_b_transfer_fee u64
LiquidityRepositioned 18 fields
  • whirlpool pubkey
  • position pubkey
  • existing_range_tick_lower_index i32
  • existing_range_tick_upper_index i32
  • new_range_tick_lower_index i32
  • new_range_tick_upper_index i32
  • existing_range_liquidity u128
  • new_range_liquidity u128
  • existing_range_token_a_amount u64
  • existing_range_token_b_amount u64
  • new_range_token_a_amount u64
  • new_range_token_b_amount u64
  • token_a_transfer_amount u64
  • token_a_transfer_fee u64
  • is_token_a_transfer_from_owner bool
  • token_b_transfer_amount u64
  • token_b_transfer_fee u64
  • is_token_b_transfer_from_owner bool
PoolInitialized 10 fields
  • whirlpool pubkey
  • whirlpools_config pubkey
  • token_mint_a pubkey
  • token_mint_b pubkey
  • tick_spacing u16
  • token_program_a pubkey
  • token_program_b pubkey
  • decimals_a u8
  • decimals_b u8
  • initial_sqrt_price u128
PositionOpened 4 fields
  • whirlpool pubkey
  • position pubkey
  • tick_lower_index i32
  • tick_upper_index i32
Traded 10 fields
  • whirlpool pubkey
  • a_to_b bool
  • pre_sqrt_price u128
  • post_sqrt_price u128
  • input_amount u64
  • output_amount u64
  • input_transfer_fee u64
  • output_transfer_fee u64
  • lp_fee u64
  • protocol_fee u64

Filter vocabulary

Runtime account roles (111)

Use these exact describeProgram role names when building Parsed Streams account-role filters.

  • adaptive_fee_tier
  • associated_token_program
  • authority
  • bundled_position
  • collect_protocol_fees_authority
  • config
  • config_extension
  • config_extension_authority
  • delegated_fee_authority
  • destination_token_account
  • existing_tick_array_lower
  • existing_tick_array_upper
  • fee_authority
  • fee_tier
  • funder
  • initialize_pool_authority
  • lock_config
  • memo_program
  • metadata_program
  • metadata_update_auth
  • new_collect_protocol_fees_authority
  • new_config_extension_authority
  • new_delegated_fee_authority
  • new_fee_authority
  • new_initialize_pool_authority
  • new_reward_authority
  • new_reward_emissions_super_authority
  • new_tick_array_lower
  • new_tick_array_upper
  • new_token_badge_authority
  • oracle
  • oracle_one
  • oracle_two
  • owner
  • position
  • position_authority
  • position_bundle
  • position_bundle_authority
  • position_bundle_metadata
  • position_bundle_mint
  • position_bundle_owner
  • position_bundle_token_account
  • position_metadata_account
  • position_mint
  • position_token_account
  • receiver
  • rent
  • reward_authority
  • reward_emissions_super_authority
  • reward_mint
  • reward_owner_account
  • reward_token_badge
  • reward_token_program
  • reward_vault
  • system_program
  • tick_array
  • tick_array_0
  • tick_array_1
  • tick_array_2
  • tick_array_lower
  • tick_array_one_0
  • tick_array_one_1
  • tick_array_one_2
  • tick_array_two_0
  • tick_array_two_1
  • tick_array_two_2
  • tick_array_upper
  • token_2022_program
  • token_authority
  • token_badge
  • token_badge_a
  • token_badge_authority
  • token_badge_b
  • token_destination_a
  • token_destination_b
  • token_mint
  • token_mint_a
  • token_mint_b
  • token_mint_input
  • token_mint_intermediate
  • token_mint_output
  • token_owner_account_a
  • token_owner_account_b
  • token_owner_account_input
  • token_owner_account_one_a
  • token_owner_account_one_b
  • token_owner_account_output
  • token_owner_account_two_a
  • token_owner_account_two_b
  • token_program
  • token_program_a
  • token_program_b
  • token_program_input
  • token_program_intermediate
  • token_program_output
  • token_vault_a
  • token_vault_b
  • token_vault_one_a
  • token_vault_one_b
  • token_vault_one_input
  • token_vault_one_intermediate
  • token_vault_two_a
  • token_vault_two_b
  • token_vault_two_intermediate
  • token_vault_two_output
  • whirlpool
  • whirlpool_one
  • whirlpool_program
  • whirlpool_two
  • whirlpools_config
  • whirlpools_config_extension
CTA Video
Divider Image

Parsed Streams documentation

View all
experience the difference

Get started

Parsed Streams is available on all paid plans