Skip to content

Access Your Local API

The WAX mainnet exposes a set of nodeos API endpoints (RPC API), allowing you to interact with the WAX Blockchain. Commonly known as chain-api-url

Now that you have a local node running on your local development server, these endpoints can be accessed from your local IP address: This API endpoint is initialized when you pass the plugin eosio::chain_api_plugin parameter to nodeos.

To test your local RPC API, from the command line, make a curl request to the get_info endpoint:

curl --request POST \
  --url \
  --header 'content-type: application/x-www-form-urlencoded; charset=UTF-8'

You should receive the following JSON Response:



Notice the "head_block_producer":"eosio" parameter. Locally, eosio is the system account. If you make a request to the WAX mainnet API, it would return an actual block producer (e.g., "head_block_producer": "strongblock1").

nodeos must be running to call this endpoint. If not, you'll receive the following message:

curl: (7) Failed to connect to port 8888: Connection refused

Additional Information

Refer to WAX RPC API for more information.