Marketplace has launched, further enabling blockchain developers! Learn more


index.isAccepted RPC method

Like all of the Index API methods, the index.isAccepted method is available across the Avalanche C-Chain, X-Chain, and P-Chain. Refer to the following list of endpoints for each chain that this method can be used on.

  • X-Chain Transactions​: /ext/index/X/tx
  • X-Chain Vertices​: /ext/index/X/vtx
  • P-Chain Blocks​: /ext/index/P/block
  • C-Chain Blocks​: /ext/index/C/block

For more information, see the Index API homepage.

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.


  1. containerID - String - (optional) The container ID.
  2. encoding - String - (optional) The encoding format - "cb58" or "hex". Defaults to "cb58".


  1. isAccepted - bool

Code Examples:

The following examples are calling the index.isAccepted method on the X-Chain Transactions endpoint: /ext/index/X/tx. To call this method on Avalanche’s other endpoints, replace the /ext/index/X/tx with any of the above listed endpoints in your code.

from web3 import Web3, HTTPProvider
w3 = Web3(HTTPProvider(''))
params = {
request = w3.provider.make_request('index.isAccepted', [params])
Ready to get started? Create a free account