Establishes connection with Arbitrum node and publishes Arbitrum blockchain data to Syntropy Data Layer via NATS connection.
Building from source.
make build
Running executable.
./arbitrum-publisher --socket /arbitrum.ipc --nats nats://35.198.163.186 --stream-prefix my-org --nats-nkey SA..BC
Environment variables can be passed to docker container. Flags can be passed as executable arguments.
Environment variable | Flag | Description |
---|---|---|
SOCKET | socket | Arbitrum node URI to establish IPC/WebSocket connection, e.g.: /tmp/arbvitrum.ipc , ws://a.b.c.d:8546 |
NATS | nats | NATS connection URL to Syntropy Data Layer broker, e.g.: nats://e.f.g.h . URL to broker. Default value is set to testnet broker: nats://35.198.163.186 . |
NATS_NKEY | nats-nkey | NATS account NKEY a.k.a access token, e.g.: SA..SI (58 chars). One access token for each publisher, see here. |
STREAM_PREFIX | stream-prefix | Stream prefix, e.g.: foo prefix results in foo.arbitrum.<tx,log-even,header,...> stream subjects. Stream prefix should be same as registered wallet alias. |
STREAM_PUBLISHER_INFIX | stream-publisher-infix | (optional) Stream publisher infix, e.g.: foo infix results in prefix.foo.<tx,log-even,header,...> stream subjects. Stream publisher infix should be same as registered publisher alias. Default: arbitrum . |
STREAM_NETWORK_INFIX | stream-network-infix | (optional) Specify stream network infix, e.g.: mainnet prefix results in <prefix>.arbitrum.mainnet.<tx,...> subjects. Default: empty (prefix.arbitrum.<tx,...> ). |
See Data Layer Quick Start to learn more.
- Build image.
docker build -f ./docker/Dockerfile -t arbitrum-publisher .
- Run container with passed environment variables.
docker run -it --rm --env-file=.env arbitrum-publisher
Run container with passed environment variables.
docker run -it --rm --env-file=.env ghcr.io/syntropynet/arbitrum-publisher:latest
docker-compose.yml
file.
version: '3.8'
services:
arbitrum-publisher:
image: ghcr.io/syntropynet/arbitrum-publisher:latest
environment:
- SOCKET=/tmp/arbitrum.ipc
- NATS=nats://35.198.163.186
- NATS_NKEY=secret-access-token
- STREAM_PREFIX=some-org
- STREAM_PUBLISHER_INFIX=arbitrum
volumes:
- /tmp/arbitrum.ipc:/tmp/arbitrum.ipc:ro
We welcome contributions from the community. Whether it's a bug report, a new feature, or a code fix, your input is valued and appreciated.
If you have any questions, ideas, or simply want to connect with us, we encourage you to reach out through any of the following channels:
- Discord: Join our vibrant community on Discord at https://discord.com/invite/jqZur5S3KZ. Engage in discussions, seek assistance, and collaborate with like-minded individuals.
- Telegram: Connect with us on Telegram at https://t.me/SyntropyNet. Stay updated with the latest news, announcements, and interact with our team members and community.
- Email: If you prefer email communication, feel free to reach out to us at devrel@syntropynet.com. We're here to address your inquiries, provide support, and explore collaboration opportunities.