Mainnet RPC

To run a self-hosted mainnet RPC, first install the required dependencies (Nodejs 22+):

npm i -g pear
pear -v
npm install [email protected]
cp -fr node_modules/trac-msb/* .
rm -fr node_modules
npm install
npm run prod-rpc --store=rpc --host=0.0.0.0 --port=3000

It is recommended to use PM2 to organize and run your RPC in background. Find it here.

You don't need to wait for a full index in order to start. You can start to use the API right away. Trac Network is a true p2p network with sparse and efficient data sharing.

See the RPC API PDF below for details on the endpoints that are available and how to perform transactions.

200KB
Open

Last updated