NEW: Helius acquires Light Protocol

Solana Data APIs

Pyth Staking Program Data API

Explore decoded instructions, events, and account roles for Pyth Staking Program.

Program ID
pytS9TjG1qyAZypk7n8rw8gfW9sUaqqYyMhJQ4E7JCQ
GET PROGRAM INFO

describeProgram

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

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

Copyable examples

Stream Pyth Staking Program data

Subscribe using the Pyth Staking 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: ["pytS9TjG1qyAZypk7n8rw8gfW9sUaqqYyMhJQ4E7JCQ"],
      instructionNames: ["accept_split"],
      includeFailed: false,
      includeCpi: true,
    }],
  }));
});

Runtime vocabulary

Instructions (22)

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 22 instructions

accept_splitExpand

Arguments

NameType
amountu64
recipientpubkey

Accounts

  • pda_authority
    WritableSigner
  • source_stake_account_positions
    Writable
  • source_stake_account_metadata
    Writable
  • source_stake_account_split_request
    Writable
  • source_stake_account_custody
    Writable
  • source_custody_authority
    Read-only
  • new_stake_account_positions
    Writable
  • new_stake_account_metadata
    Writable
  • new_stake_account_custody
    Writable
  • new_custody_authority
    Read-only
  • config
    Read-only
  • pyth_token_mint
    Read-only
  • rent
    Read-only
  • token_program
    Read-only
  • system_program
    Read-only
advance_clockExpand

Arguments

NameType
secondsi64

Accounts

  • config
    Writable
close_positionExpand

Arguments

NameType
indexu8
amountu64
target_with_parametersTargetWithParameters

Accounts

  • owner
    WritableSigner
  • stake_account_positions
    Writable
  • stake_account_metadata
    Writable
  • stake_account_custody
    Read-only
  • config
    Read-only
  • target_account
    WritableOptional
  • pool_authority
    Read-onlySignerOptional
  • system_program
    Read-only
create_positionExpand

Arguments

NameType
target_with_parametersTargetWithParameters
amountu64

Accounts

  • owner
    WritableSigner
  • stake_account_positions
    Writable
  • stake_account_metadata
    Writable
  • stake_account_custody
    Read-only
  • config
    Read-only
  • target_account
    WritableOptional
  • pool_authority
    Read-onlySignerOptional
  • system_program
    Read-only
create_stake_accountExpand

Arguments

NameType
ownerpubkey
lockVestingSchedule

Accounts

  • payer
    WritableSigner
  • stake_account_positions
    Writable
  • stake_account_metadata
    Writable
  • stake_account_custody
    Writable
  • custody_authority
    Read-only
  • config
    Read-only
  • pyth_token_mint
    Read-only
  • rent
    Read-only
  • token_program
    Read-only
  • system_program
    Read-only
create_targetExpand

Arguments

No unambiguous argument schema is available.

Accounts

  • payer
    WritableSigner
  • governance_authority
    Read-onlySigner
  • config
    Read-only
  • target_account
    Writable
  • system_program
    Read-only
create_voter_recordExpand

Arguments

No unambiguous argument schema is available.

Accounts

  • payer
    WritableSigner
  • stake_account_positions
    Read-only
  • stake_account_metadata
    Writable
  • voter_record
    Writable
  • config
    Read-only
  • system_program
    Read-only
export_position_typeExpand

Arguments

NameType
_positionPosition

Accounts

  • payer
    WritableSigner
  • config_account
    Writable
  • rent
    Read-only
  • system_program
    Read-only
init_configExpand

Arguments

NameType
global_configGlobalConfig

Accounts

  • payer
    WritableSigner
  • config_account
    Writable
  • rent
    Read-only
  • system_program
    Read-only
join_dao_llcExpand

Arguments

NameType
_agreement_hash[u8; 32]

Accounts

  • owner
    Read-onlySigner
  • stake_account_positions
    Read-only
  • stake_account_metadata
    Writable
  • config
    Read-only
merge_target_positionsExpand

Arguments

NameType
target_with_parametersTargetWithParameters

Accounts

  • owner
    Writable
  • stake_account_positions
    Writable
  • stake_account_metadata
    Writable
  • config
    Read-only
  • pool_authority
    Read-onlySignerOptional
recover_accountExpand

Arguments

No unambiguous argument schema is available.

Accounts

  • governance_authority
    Read-onlySigner
  • owner
    Read-only
  • stake_account_positions
    Writable
  • stake_account_metadata
    Writable
  • voter_record
    Writable
  • config
    Read-only
request_splitExpand

Arguments

NameType
amountu64
recipientpubkey

Accounts

  • owner
    WritableSigner
  • stake_account_positions
    Read-only
  • stake_account_metadata
    Read-only
  • stake_account_split_request
    Writable
  • config
    Read-only
  • system_program
    Read-only
slash_accountExpand

Arguments

NameType
slash_ratiou64

Accounts

  • pool_authority
    Read-onlySigner
  • publisher
    Read-only
  • stake_account_positions
    Writable
  • stake_account_metadata
    Writable
  • stake_account_custody
    Writable
  • config
    Read-only
  • governance_target_account
    Writable
  • destination
    Writable
  • custody_authority
    Read-only
  • token_program
    Read-only
update_agreement_hashExpand

Arguments

NameType
agreement_hash[u8; 32]

Accounts

  • governance_authority
    Read-onlySigner
  • config
    Writable
update_governance_authorityExpand

Arguments

NameType
new_authoritypubkey

Accounts

  • governance_authority
    Read-onlySigner
  • config
    Writable
update_max_voter_weightExpand

Arguments

No unambiguous argument schema is available.

Accounts

  • payer
    WritableSigner
  • max_voter_record
    Writable
  • config
    Read-only
  • system_program
    Read-only
update_pda_authorityExpand

Arguments

NameType
new_authoritypubkey

Accounts

  • pda_authority
    Read-onlySigner
  • config
    Writable
update_pool_authorityExpand

Arguments

NameType
pool_authoritypubkey

Accounts

  • governance_authority
    Read-onlySigner
  • config
    Writable
update_token_list_timeExpand

Arguments

NameType
token_list_timei64 | null

Accounts

  • governance_authority
    Read-onlySigner
  • config
    Writable
update_voter_weightExpand

Arguments

NameType
actionVoterWeightAction

Accounts

  • owner
    Read-onlySigner
  • stake_account_positions
    Read-only
  • stake_account_metadata
    Read-only
  • stake_account_custody
    Read-only
  • voter_record
    Writable
  • config
    Read-only
  • governance_target
    Writable
withdraw_stakeExpand

Arguments

NameType
amountu64

Accounts

  • owner
    Read-onlySigner
  • destination
    Writable
  • stake_account_positions
    Read-only
  • stake_account_metadata
    Read-only
  • stake_account_custody
    Writable
  • custody_authority
    Read-only
  • config
    Read-only
  • token_program
    Read-only

Program-defined data

IDL events (0)

These are events defined by the Pyth Staking Program IDL.

No IDL events are listed for this program.

Filter vocabulary

Runtime account roles (32)

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

  • config
  • config_account
  • custody_authority
  • destination
  • governance_authority
  • governance_target
  • governance_target_account
  • max_voter_record
  • new_custody_authority
  • new_stake_account_custody
  • new_stake_account_metadata
  • new_stake_account_positions
  • owner
  • payer
  • pda_authority
  • pool_authority
  • publisher
  • pyth_token_mint
  • rent
  • source_custody_authority
  • source_stake_account_custody
  • source_stake_account_metadata
  • source_stake_account_positions
  • source_stake_account_split_request
  • stake_account_custody
  • stake_account_metadata
  • stake_account_positions
  • stake_account_split_request
  • system_program
  • target_account
  • token_program
  • voter_record
CTA Video
Divider Image

Parsed Streams documentation

View all
experience the difference

Get started

Parsed Streams is available on all paid plans