This guide explains how to deploy the Primus Network Attestor Node using TEE (provided by Phala) in production environments.
| Chain | ChainId | Task Contract Address | Support |
|---|---|---|---|
| base-mainnet | 8453 | 0x151cb5eD5D10A42B607bB172B27BDF6F884b9707 | ✅ |
| base-sepolia | 84532 | 0xC02234058caEaA9416506eABf6Ef3122fCA939E8 | ✅ |
- If you don't have a Phala account, you can register one here.
1. Visit the deployment template and click
Deploy button.
- Name: This node's name, you should use the default name.
- KMS Provider: Only supports
Base - Node:
prod7 - Instance Type: Use
Large TDX Instance(4 vCPU, 8 GB) - Storage: Larger than
20 GB - Operating System:
dstack-0.5.4.1 - Encrypted Secrets: Please set
PRIVATE_KEY,BASE_RPC_URL.PRIVATE_KEYshould start with0x.PRIVATE_KEYacts as the owner of the node, used to report results, and will also be used to register the node.BASE_TASK_CONTRACT_ADDRESS,BASE_CHAIN_IDandIMAGE_TAGplease use the default values.
NOTE: If you want to deploy
Primus NetworkonBase Sepolia, please modifyBASE_TASK_CONTRACT_ADDRESS,BASE_CHAIN_IDandBASE_RPC_URL.These values can be found under Supported Chains.
6. Click the attestor-node service to view the node's log. You will find the attestor's address in the log.
Please save this address as you will need it when registering the node.
Please save this endpoint for registering the node.
If you see Hi, PRIMUS NETWORK!, it means you have successfully deployed the node.
NOTE: Before managing a node, you must first contact the primuslabs team to have the attestor added to the whitelist.
Make sure Docker is installed on your system.
git clone https://github.com/primus-labs/primus-network-startup.git
cd primus-network-startup
chmod +x ./run.shBased on the chain where your node is located, run the following command:
cp env_files/.env.<chain-name> .envThen set your private key, RPC URL, and other parameters:
PRIVATE_KEY=0x
RPC=<Your RPC URL>
NODE_CONTRACT_ADDRESS=
ATTESTOR_ADDRESS=
RECIPIENT_ADDRESS=
ATTESTOR_URLS=<node-domain1>
NODE_META_URL=https://api-dev.primuslabs.xyz/node1-meta.json- PRIVATE_KEY: This private key owns the node and is the same as the above
while deploying the node. We recommend depositing 0.01 ETH to this address. If you set it as the
RECIPIENT_ADDRESSbelow, it will automatically receive task fees. This ensures sufficient balance for reporting results. Otherwise, you must manually monitor and maintain the balance. - RPC: rpc for the chain.
- NODE_CONTRACT_ADDRESS: This is the address of the node contract. You can use the default value from
env_files/.env.<chain-name>. - ATTESTOR_ADDRESS: Attestor's address to sign attestations, this address is from above attestor-node.
- RECIPIENT_ADDRESS:Address to receive task fees. This address can be set to the node owner address corresponding to the PRIVATE_KEY above, or to any other address.
- ATTESTOR_URLS: Attestor node domain names. This domain is
from endpoint above,
and remove
https://, just the domain name like:dd26063786a0fccd8e4cc499374b4515d4df1e87-18080.dstack-base-prod7.phala.network.If you have multiple URLs, separate them with commas. - NODE_META_URL: Attestor node metadata url. The metadata should be a JSON document containing the following fields:
{
"name": "Your node name",
"description": "Introduce your node",
"website": "Your website URL",
"x": "https://x.com/<your_x_username>",
"logo": ""
}MAKE SURE NODE_META_URL IS PUBLICLY ACCESSIBLE ON THE INTERNET.
sudo ./run.sh registerIf you want to unregister from the Primus network, run the following command:
sudo ./run.sh unregisterPlease note: Unregistering from the network means you will no longer receive any tasks and will not earn any income.





