Run a Gravity Node

Instructions about how to run a Gravity Alpha Mainnet node.

Guide

  1. Create a local directory and replace <some_local_dir> with your path.

  2. Run your own Ethereum mainnet node or use a node provider with unlimited rate limit for eth_getLogs and replace <ethereum_mainnet_rpc> with your rpc endpoint.

  3. Replace <ethereum_beacon_chain_rpc> with your own Ethereum beacon chain rpc endpoint.

docker run --rm -it  -v <some_local_dir>/arbitrum:/home/user/.arbitrum -p 0.0.0.0:8547:8547 -p 0.0.0.0:8548:8548 offchainlabs/nitro-node:v2.3.3-6a1c1a7 --parent-chain.connection.url=<ethereum_mainnet_rpc> --chain.id=1625 --chain.name=conduit-orbit-deployer --http.api=net,web3,eth --http.corsdomain=\* --http.addr=0.0.0.0 --http.vhosts=\* --chain.info-json="[{\"chain-id\":1625,\"parent-chain-id\":1,\"chain-name\":\"conduit-orbit-deployer\",\"chain-config\":{\"chainId\":1625,\"homesteadBlock\":0,\"daoForkBlock\":null,\"daoForkSupport\":true,\"eip150Block\":0,\"eip150Hash\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"eip155Block\":0,\"eip158Block\":0,\"byzantiumBlock\":0,\"constantinopleBlock\":0,\"petersburgBlock\":0,\"istanbulBlock\":0,\"muirGlacierBlock\":0,\"berlinBlock\":0,\"londonBlock\":0,\"clique\":{\"period\":0,\"epoch\":0},\"arbitrum\":{\"EnableArbOS\":true,\"AllowDebugPrecompiles\":false,\"DataAvailabilityCommittee\":true,\"InitialArbOSVersion\":11,\"InitialChainOwner\":\"0xd65776c5F9fA552cB5C9556B3e86bF6c376b233b\",\"GenesisBlockNum\":0}},\"rollup\":{\"bridge\":\"0x7983403dDA368AA7d67145a9b81c5c517F364c42\",\"inbox\":\"0x7AD2a94BefF3294a31894cFb5ba4206957a53c19\",\"sequencer-inbox\":\"0x8D99372612e8cFE7163B1a453831Bc40eAeb3cF3\",\"rollup\":\"0xf993AF239770932A0EDaB88B6A5ba3708Bd58239\",\"validator-utils\":\"0x2b0E04Dc90e3fA58165CB41E2834B44A56E766aF\",\"validator-wallet-creator\":\"0x9CAd81628aB7D8e239F1A5B497313341578c5F71\",\"deployed-at\":19898364}}]" --node.data-availability.enable --node.data-availability.rest-aggregator.enable --node.data-availability.rest-aggregator.urls=https://das-gravity-mainnet-0.t.conduit.xyz --execution.forwarding-target=https://rpc.gravity.xyz --node.feed.input.url=wss://relay-gravity-mainnet-0.t.conduit.xyz --parent-chain.blob-client.beacon-url=<ethereum_beacon_chain_rpc>

Note that in the above command, we are using chain name and chain info obtained from conduit by:

curl https://api.conduit.xyz/file/v1/arbitrum/chaininfo/gravity-mainnet-0

Relay endpoint is provided by Conduit as wss://relay-gravity-mainnet-0.t.conduit.xyz

Gravity Alpha Mainnet is using Anytrust DA, the aggregator URL is:

https://das-gravity-mainnet-0.t.conduit.xyz

Testnet Guide

Alternatively, if you'd like to run a testnet node, please use celestia's nitro fork with the following parameters:

docker run --rm -it  -v <some_local_dir>/arbitrum:/home/user/.arbitrum -p 0.0.0.0:8547:8547 -p 0.0.0.0:8548:8548 ghcr.io/celestiaorg/nitro:v2.3.3 --parent-chain.connection.url=https://rpc.ankr.com/eth_sepolia/<omitted> --chain.id=13505 --chain.name=conduit-orbit-deployer --http.api=net,web3,eth --http.corsdomain=\* --http.addr=0.0.0.0 --http.vhosts=\* --chain.info-json="[{\"chain-id\":13505,\"parent-chain-id\":11155111,\"chain-name\":\"conduit-orbit-deployer\",\"chain-config\":{\"chainId\":13505,\"homesteadBlock\":0,\"daoForkBlock\":null,\"daoForkSupport\":true,\"eip150Block\":0,\"eip150Hash\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"eip155Block\":0,\"eip158Block\":0,\"byzantiumBlock\":0,\"constantinopleBlock\":0,\"petersburgBlock\":0,\"istanbulBlock\":0,\"muirGlacierBlock\":0,\"berlinBlock\":0,\"londonBlock\":0,\"clique\":{\"period\":0,\"epoch\":0},\"arbitrum\":{\"EnableArbOS\":true,\"AllowDebugPrecompiles\":false,\"DataAvailabilityCommittee\":true,\"InitialArbOSVersion\":11,\"InitialChainOwner\":\"0x218a4534C699CE35dc929ff4ca845C05Af9A57a2\",\"GenesisBlockNum\":0}},\"rollup\":{\"bridge\":\"0x946CF7F3238537e51B017369E523425A18996C23\",\"inbox\":\"0xe50eBd835F5f17fdEC0A547c37343F080B664357\",\"sequencer-inbox\":\"0x3eb7334755Fb41dC01400B15C8cC0C64B36E5969\",\"rollup\":\"0xDE145C4Ef9699D130848167d512dD1D09f173066\",\"validator-utils\":\"0xb33Dca7b17c72CFC311D68C543cd4178E0d7ce55\",\"validator-wallet-creator\":\"0x75500812ADC9E51b721BEa31Df322EEc66967DDF\",\"deployed-at\":5979967}}]" --node.data-availability.enable --node.data-availability.rest-aggregator.enable --node.data-availability.rest-aggregator.urls=https://das-gravity-testnet-sepolia-34ow2embsc.t.conduit.xyz --execution.forwarding-target=https://rpc-sepolia.gravity.xyz --node.feed.input.url=wss://relay-gravity-testnet-sepolia-34ow2embsc.t.conduit.xyz --parent-chain.blob-client.beacon-url=https://rpc.ankr.com/premium-http/eth_sepolia_beacon/<omitted>

References

For more information, please check out the following guides:

Last updated