0.01 credits per call
accountSubscribe on Solana: Subscribes to changes to an account.
Endpoint
accountSubscribe is a WebSocket subscription method.
Authenticate with Authorization: Bearer <GOLDRUSH_API_KEY>. See authentication.
Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
address | string | yes | Base-58 encoded account address to watch. | "CM78CPUeXjn8o3yroDHxUtKsZZgoy4GPkPPXfouKNH12" |
config | object | no | {commitment?, encoding?}. | {"encoding":"jsonParsed","commitment":"finalized"} |
Returns
number: Subscription id (used with accountUnsubscribe). Notifications arrive as accountNotification messages.
Examples
Errors
Standard JSON-RPC errors:-32600 invalid request, -32601 method not found, -32602 invalid params.