klay_subscribe RPC Method
Parameters
notificationTyper
string
REQUIRED
A notification type: 'newHeads' or 'logs'
Returns
result
boolean
Return a subscription id when a subscription is created
Request
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "klay_subscribe",6"id": 1,7"jsonrpc": "2.0",8"params": ["newHeads"]9}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free