Running Matchain Node
Last updated
docker compose --env-file .env up -ddocker compose logs -f nodedocker compose logs -f gethcurl --location 'localhost:8545' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_syncing",
"params": [],
"id": 2
}'{
"jsonrpc": "2.0",
"id": 2,
"result": {
"currentBlock": "0x7d0f5",
...
"highestBlock": "0xd8674",
...
}
}{"jsonrpc":"2.0","id":2,"result":false}curl --location 'localhost:8545' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"id": 2
}'{
"jsonrpc": "2.0",
"id": 2,
"result": "0x2139"
}docker compose down