Full Node More

API Key

It's a good practice to use API key to limit the access to your full node's rest endpoints.

API Key Setup

Please add the following to your user.conf by replacing the zeros with your own key (>= 32 characters).

alephium.api.api-key = "0000000000000000000000000000000000000000000000000000000000000000"

Restart your full node to make this take effect.

API Key Generation

On GNU/ Linux: cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 48 | head -n 1

Use API Key

  1. Click on the Authorize button on the top right of your Swagger UI: full-node-api-key-auth0

  2. Fill in the value box with your key and click the authorize button: full-node-api-key-auth1

Now you could use Swagger UI as if there is no API key.

Error "java.lang.AssertionError: assumption failed"

This error often occurs due to connection loss during node synchronization and means that some of the files are corrupted. To fix the problem:

  1. Delete the folder .alephium rm .alephium

  2. Restart the node and wait for synchronization java -jar -Xmx1G alephium-1.2.4.jar