Messages
{
"jsonrpc": "2.0",
"id": 1,
"method": "programSubscribe",
"params": [
"11111111111111111111111111111111",
{
"encoding": "base64",
"commitment": "finalized"
}
]
}Websockets
Program subscribe
订阅指定程序拥有的账户的写入。保存 result 中返回的订阅 ID,并与通知中的 params.subscription 对照。在同一连接上使用 programUnsubscribe 停止订阅。
WSS
/
Messages
{
"jsonrpc": "2.0",
"id": 1,
"method": "programSubscribe",
"params": [
"11111111111111111111111111111111",
{
"encoding": "base64",
"commitment": "finalized"
}
]
}api_key
type:httpApiKey
API key for authentication. Provide your Solana Tracker API key as a query parameter.
programSubscribe
type:object
Subscribe to program accounts
此页面对您有帮助吗?