Skip to main content

Anchor IDL Guide

Programs with an Anchor IDL can take advantage of the default program parser and do not need to write their own rpcX packages.

This guide assumes you already have a deployed program and Anchor IDL.

1. Install the atlas-rpcx CLI:

The following command will install the latest version of the atlas rpcX cli. Currently only Linux and MacOS are supported.

sh -c "$(curl -sSfL release.atlas.xyz/rpcx-cli/install)"

2. Deploy the Anchor IDL using the rpcX CLI

atlas-rpcx registry deploy <PROGRAM_ID> <PATH_TO_IDL> --url <RPC_URL>  --keypair <PATH_TO_KEYPAIR>
warning

Ensure that <PATH_TO_KEYPAIR> references the same keypair that was used to deploy the program. Only the program deployer can register an rpcX package tied to the program's ID.

And that's it! Check some program owned accounts or a transaction on the explorer to make sure that they are parsing!