https://github.com/acalanetwork/scripts
https://github.com/acalanetwork/scripts
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/acalanetwork/scripts
- Owner: AcalaNetwork
- License: apache-2.0
- Created: 2022-03-29T01:17:23.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T09:21:00.000Z (over 2 years ago)
- Last Synced: 2025-04-10T21:09:32.910Z (about 1 month ago)
- Language: TypeScript
- Size: 2.04 MB
- Stars: 3
- Watchers: 6
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scripts
- Install
- `yarn`
- Run
- `yarn ts-node src/scripts/loan-positions.ts`
- Configure private node
- Copy `.env.example` to `.env` and add ws endpoint
- Parameters
- `--network`: network name, `all` for all the supported networks. Support comma seperated list: `--network=karura,acala`
- `--output`: `csv` or `console`. Default `console` which uses `console.table` for output and enable balance formatting.
- `--at`: Run the script at specific block height. Default `now`. Support comma seperated list: `--at=7d,3d,-100,now`
- `now`: latest block
- positive number: block height
- negative number: x block before
- relative time unit e.g. `1w`, `2d`, `3h`, `4m`, `5s`: relative time from current block