Skip to main content

Constructing Requests

Option 1: You can use the JSON RPC playground to easily create sample JSON RPC requests. Option 2: Alternatively, you can construct your own requests by following the below steps:
  1. Log into the CDP Portal and go to the Data page.
  2. Ensure the correct network in your RPC URL based on the supported RPC networks.
  3. Open a terminal and make your requests based on the supported methods in this API reference page.
AuthenticationFor information on how to authenticate requests to our JSON-RPC APIs, please visit the Client API Key section of our Authentication page.

JSON-RPC Methods for Address History Data

cdp_listBalances

This endpoint retrieves the latest balances for an address. Note that this JSON RPC endpoint provides a more complete list of assets than the CDP API. However, there is a few seconds of delay in terms of data freshness for indexing a complete list of assets. If you need more real-time data with whitelisted assets, you should use the CDP API. The API credit value of this method is 100.

Parameters

Returns

Request/Response

cdp_listBalanceDetails

This endpoint lists the latest balance details for an asset for an address. Similar to cdp_listBalances, if you need more real-time data, you should use the CDP API. The API credit value of this method is 100.

Parameters

Returns

Request/Response

cdp_listBalanceHistories

This endpoint lists the balance histories for an asset for an address. cdp_listBalanceHistory is also a valid method name for this method. The API credit value of this method is 100.

Parameters

Returns

Request/Response

cdp_listAddressTransactions

This endpoint lists the transactions for an address. cdp_listTransactions is also a valid method name for this method. The API credit value of this method is 100.

Parameters

Returns

Request/Response