⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
sol

Solana (SOL)

Method: POST logsSubscribe

dropdown
POST

logsSubscribe

Method not allowed

Subscribe to transaction logging

Parameters

filter - string or object

filter criteria for the logs to receive results by account type; currently supported: - all - subscribe to all transactions except for simple vote transactions - { "mentions": [string] } - subscribe to all transactions that mention the provided Pubkey (as base-58 encoded string)

config - object

Optional.

Configuration object containing the following optional fields: - commitment (optional)

Request

curl --location --request POST 'https://sol.getblock.io/mainnet' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "logsSubscribe",
"params": [null, null],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}