The service unifies Waves and Ethereum transactions under a new term 'operations'.
Consists of a consumer and a web-service, plus a database migration tool.
cargo build --release
List of pending migrations:
cargo run --release --bin migration -- list
Apply pending migrations:
cargo run --release --bin migration -- up
Revert last migration:
cargo run --release --bin migration -- down
cargo run --release --bin consumer
cargo run --release --bin service
RUST_LOG
- logging parameters, as a startdebug,hyper=warn,h2=warn,tower=warn
is good enoughRUST_LOG_FORMAT
- log format, eitherplain
orjson
, defaultjson
BLOCKCHAIN_UPDATES_URL
- for mainnet this ishttps://blockchain-updates.waves.exchange
STARTING_HEIGHT
- starting blockchain height, for mainnet 1610030 is perfect, the very firstInvokeScript
transaction is at this heightBATCH_MAX_DELAY_SEC
- maximum interval between database writes, default 10 secondsBATCH_MAX_SIZE
- maximum number of updates to batch, default 256PGHOST
- Postgres hostPGUSER
- Postgres userPGPASSWORD
- Postgres passwordPGDATABASE
- postgres database nameMETRICS_PORT
- port for web-server with application metrics
RUST_LOG
- logging parameters, as a startdebug,hyper=warn,warp=warn
is good enoughRUST_LOG_FORMAT
- log format, eitherplain
orjson
, defaultjson
PORT
- web server port, default 8080PGHOST
- Postgres hostPGUSER
- Postgres userPGPASSWORD
- Postgres passwordPGDATABASE
- postgres database namePGPOOLSIZE
- database pool size, default 4
PGHOST
- Postgres hostPGUSER
- Postgres userPGPASSWORD
- Postgres passwordPGDATABASE
- postgres database name
Create new empty database. Then run migrator once. Start consumer, then start web-service.
http://localhost:8080/operations?sender=address&sort=asc&limit=10&after=...