https://github.com/subsquid/substrate-gateway
graphql server for subsquid archive
https://github.com/subsquid/substrate-gateway
Last synced: about 1 year ago
JSON representation
graphql server for subsquid archive
- Host: GitHub
- URL: https://github.com/subsquid/substrate-gateway
- Owner: subsquid
- Archived: true
- Created: 2022-02-15T08:00:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-24T19:26:05.000Z (almost 3 years ago)
- Last Synced: 2025-03-13T01:33:53.622Z (about 1 year ago)
- Language: Rust
- Size: 397 KB
- Stars: 10
- Watchers: 10
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Substrate Gateway
### Graphql api over data from [substrate-ingest](https://github.com/subsquid/squid-sdk/tree/master/substrate/substrate-ingest)
# Configuration
`substrate-gateway` supports configuration via command line arguments.
```
OPTIONS:
--acala-support
Acala's EVM pallet support
--contracts-support
Сontracts pallet support
--database-max-connections
Maximum number of connections supported by pool [default: 1]
--database-statement-timeout
Abort any statement that takes more than the specified amount of ms [default: 0]
--database-type
Database type [default: postgres] [possible values: postgres, cockroach]
--database-url
Database connection string
--evm-support
EVM pallet support
--gear-support
Gear pallet support
--scan-max-value
Query engine will be upper limited by this amount of blocks [default: 100000]
--scan-start-value
Number of blocks to start scanning a database [default: 100]
-h, --help
Print help information
```
# Logging
Logging can be enabled as follows: `RUST_LOG=substrate_gateway=info`
To examine sql queries it's required to specify additional log rules: `RUST_LOG=substrate_gateway=info,sqlx=debug`
# Development
[git-cliff](https://github.com/orhun/git-cliff) is used as a changelog generator
```bash
git cliff --prepend CHANGELOG.md -u --tag
```