Solana Data APIs
Pyth Staking Program Data API
Explore decoded instructions, events, and account roles for Pyth Staking Program.
pytS9TjG1qyAZypk7n8rw8gfW9sUaqqYyMhJQ4E7JCQdescribeProgram
Call describeProgram to get a parsed list of instructions, accounts, and roles for Pyth Staking Program and 3,600+ Solana programs.
{
"jsonrpc": "2.0",
"id": 1,
"method": "describeProgram",
"params": [
{
"program": "pytS9TjG1qyAZypk7n8rw8gfW9sUaqqYyMhJQ4E7JCQ"
}
]
}{
"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.
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_splitExpandCollapse
Arguments
| Name | Type |
|---|---|
| amount | u64 |
| recipient | pubkey |
Accounts
pda_authorityWritableSignersource_stake_account_positionsWritablesource_stake_account_metadataWritablesource_stake_account_split_requestWritablesource_stake_account_custodyWritablesource_custody_authorityRead-onlynew_stake_account_positionsWritablenew_stake_account_metadataWritablenew_stake_account_custodyWritablenew_custody_authorityRead-onlyconfigRead-onlypyth_token_mintRead-onlyrentRead-onlytoken_programRead-onlysystem_programRead-only
advance_clockExpandCollapse
Arguments
| Name | Type |
|---|---|
| seconds | i64 |
Accounts
configWritable
close_positionExpandCollapse
Arguments
| Name | Type |
|---|---|
| index | u8 |
| amount | u64 |
| target_with_parameters | TargetWithParameters |
Accounts
ownerWritableSignerstake_account_positionsWritablestake_account_metadataWritablestake_account_custodyRead-onlyconfigRead-onlytarget_accountWritableOptionalpool_authorityRead-onlySignerOptionalsystem_programRead-only
create_positionExpandCollapse
Arguments
| Name | Type |
|---|---|
| target_with_parameters | TargetWithParameters |
| amount | u64 |
Accounts
ownerWritableSignerstake_account_positionsWritablestake_account_metadataWritablestake_account_custodyRead-onlyconfigRead-onlytarget_accountWritableOptionalpool_authorityRead-onlySignerOptionalsystem_programRead-only
create_stake_accountExpandCollapse
Arguments
| Name | Type |
|---|---|
| owner | pubkey |
| lock | VestingSchedule |
Accounts
payerWritableSignerstake_account_positionsWritablestake_account_metadataWritablestake_account_custodyWritablecustody_authorityRead-onlyconfigRead-onlypyth_token_mintRead-onlyrentRead-onlytoken_programRead-onlysystem_programRead-only
create_targetExpandCollapse
Arguments
No unambiguous argument schema is available.
Accounts
payerWritableSignergovernance_authorityRead-onlySignerconfigRead-onlytarget_accountWritablesystem_programRead-only
create_voter_recordExpandCollapse
Arguments
No unambiguous argument schema is available.
Accounts
payerWritableSignerstake_account_positionsRead-onlystake_account_metadataWritablevoter_recordWritableconfigRead-onlysystem_programRead-only
export_position_typeExpandCollapse
Arguments
| Name | Type |
|---|---|
| _position | Position |
Accounts
payerWritableSignerconfig_accountWritablerentRead-onlysystem_programRead-only
init_configExpandCollapse
Arguments
| Name | Type |
|---|---|
| global_config | GlobalConfig |
Accounts
payerWritableSignerconfig_accountWritablerentRead-onlysystem_programRead-only
join_dao_llcExpandCollapse
Arguments
| Name | Type |
|---|---|
| _agreement_hash | [u8; 32] |
Accounts
ownerRead-onlySignerstake_account_positionsRead-onlystake_account_metadataWritableconfigRead-only
merge_target_positionsExpandCollapse
Arguments
| Name | Type |
|---|---|
| target_with_parameters | TargetWithParameters |
Accounts
ownerWritablestake_account_positionsWritablestake_account_metadataWritableconfigRead-onlypool_authorityRead-onlySignerOptional
recover_accountExpandCollapse
Arguments
No unambiguous argument schema is available.
Accounts
governance_authorityRead-onlySignerownerRead-onlystake_account_positionsWritablestake_account_metadataWritablevoter_recordWritableconfigRead-only
request_splitExpandCollapse
Arguments
| Name | Type |
|---|---|
| amount | u64 |
| recipient | pubkey |
Accounts
ownerWritableSignerstake_account_positionsRead-onlystake_account_metadataRead-onlystake_account_split_requestWritableconfigRead-onlysystem_programRead-only
slash_accountExpandCollapse
Arguments
| Name | Type |
|---|---|
| slash_ratio | u64 |
Accounts
pool_authorityRead-onlySignerpublisherRead-onlystake_account_positionsWritablestake_account_metadataWritablestake_account_custodyWritableconfigRead-onlygovernance_target_accountWritabledestinationWritablecustody_authorityRead-onlytoken_programRead-only
update_agreement_hashExpandCollapse
Arguments
| Name | Type |
|---|---|
| agreement_hash | [u8; 32] |
Accounts
governance_authorityRead-onlySignerconfigWritable
update_governance_authorityExpandCollapse
Arguments
| Name | Type |
|---|---|
| new_authority | pubkey |
Accounts
governance_authorityRead-onlySignerconfigWritable
update_max_voter_weightExpandCollapse
Arguments
No unambiguous argument schema is available.
Accounts
payerWritableSignermax_voter_recordWritableconfigRead-onlysystem_programRead-only
update_pda_authorityExpandCollapse
Arguments
| Name | Type |
|---|---|
| new_authority | pubkey |
Accounts
pda_authorityRead-onlySignerconfigWritable
update_pool_authorityExpandCollapse
Arguments
| Name | Type |
|---|---|
| pool_authority | pubkey |
Accounts
governance_authorityRead-onlySignerconfigWritable
update_token_list_timeExpandCollapse
Arguments
| Name | Type |
|---|---|
| token_list_time | i64 | null |
Accounts
governance_authorityRead-onlySignerconfigWritable
update_voter_weightExpandCollapse
Arguments
| Name | Type |
|---|---|
| action | VoterWeightAction |
Accounts
ownerRead-onlySignerstake_account_positionsRead-onlystake_account_metadataRead-onlystake_account_custodyRead-onlyvoter_recordWritableconfigRead-onlygovernance_targetWritable
withdraw_stakeExpandCollapse
Arguments
| Name | Type |
|---|---|
| amount | u64 |
Accounts
ownerRead-onlySignerdestinationWritablestake_account_positionsRead-onlystake_account_metadataRead-onlystake_account_custodyWritablecustody_authorityRead-onlyconfigRead-onlytoken_programRead-only
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.
configconfig_accountcustody_authoritydestinationgovernance_authoritygovernance_targetgovernance_target_accountmax_voter_recordnew_custody_authoritynew_stake_account_custodynew_stake_account_metadatanew_stake_account_positionsownerpayerpda_authoritypool_authoritypublisherpyth_token_mintrentsource_custody_authoritysource_stake_account_custodysource_stake_account_metadatasource_stake_account_positionssource_stake_account_split_requeststake_account_custodystake_account_metadatastake_account_positionsstake_account_split_requestsystem_programtarget_accounttoken_programvoter_record


Parsed Streams documentation
View allGet started
Parsed Streams is available on all paid plans


