AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.

Start building today!     

Contents

slotSubscribe RPC Method

The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. None

Returns:

  1. Result - The result will be an RpcResponse JSON object with id equal to:

    integer - Subscription id (needed to unsubscribe)

Notification Format:

  1. Result - The notification format is the same as seen in the getAccountInfo RPC HTTP method.

    parent - The parent slot

    root - The current root slot

    slot - The newly set slot

Code Examples:

wscat -c wss://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \ 
# wait for connection 
{"id":1,"jsonrpc":"2.0","method": "slotSubscribe" }
Ready to get started? Create a free account