Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chain-sql
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanjinfei
chain-sql
Commits
3e60eb32
Commit
3e60eb32
authored
Jan 16, 2026
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:add config example
parent
e7474c0f
Pipeline
#920
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
config.example.yaml
configs/ config.example.yaml
+34
-0
No files found.
configs/ config.example.yaml
0 → 100644
View file @
3e60eb32
chain
:
# 区块链节点的 RPC 地址 (HTTP 或 HTTPS)
# 示例: https://mainnet.infura.io/v3/YOUR_KEY
rpc_url
:
"
http://localhost:8545"
# Factory 合约部署后的地址
# 必须是 Checksum 格式 (混合大小写)
factory_address
:
"
0x0000000000000000000000000000000000000000"
# 链 ID (主网: 1, Goerli: 5, Local: 1337)
chain_id
:
1337
database
:
# PostgreSQL 连接字符串
# 格式: postgres://user:password@host:port/dbname?sslmode=disable
dsn
:
"
postgres://postgres:password@localhost:5432/chainsql?sslmode=disable"
sync
:
# 起始扫描区块高度 (部署合约时的区块高度)
start_block
:
0
# 区块确认数 (防止重组回滚,建议: L2=1, L1=12)
confirmations
:
12
# 轮询间隔 (Duration 格式: 2s, 100ms, 1m)
poll_interval
:
"
2s"
# 每次 eth_getLogs 请求的最大区块范围
# 建议: 公共节点设为 2000,私有节点可设为 10000
max_batch_size
:
100
# 分批轮询地址时的每批数量
# 如果合约数量巨大,调小此值以防止 RPC 请求过大
address_batch_size
:
50
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment