A performant Ethereum relayer written in Go. It connects to an Ethereum-compatible node, subscribes to new blocks, and decodes transactions to a specific contract.
- Go 1.23+
- Access to an Ethereum-compatible RPC endpoint (e.g., Base, Infura, Alchemy)
-
Clone the repository.
-
Create a
.envfile in the project root with:BASE_RPC=YOUR_ETHEREUM_RPC_URL
-
Install dependencies:
go mod tidy
go run main.go
The relayer will connect to the RPC endpoint, subscribe to new blocks, and print decoded transactions for the contract at 0x28172273CC1E0395F3473EC6eD062B6fdFb15940.