-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathexample.config.toml
54 lines (44 loc) · 1.34 KB
/
example.config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[wallet]
private_key = ""
[monitor]
mode = "geyser" # wss or geyser
[rpc]
network = "mainnet-beta"
endpoints = [
"https://api.mainnet-beta.solana.com" # 多个 rpc 节点, 优先使用第一个
] # 多个 rpc 节点, 优先使用第一个
commitment = "finalized"
[rpc.geyser]
enable = true
endpoint = "solana-yellowstone-grpc.publicnode.com:443"
api_key = ""
[trading]
# prioritization fee = UNIT_PRICE * UNIT_LIMIT
unit_limit = 81000
unit_price = 3000000
preflight_check = false
tx_simulate = false
[api]
helius_api_base_url = "https://api.helius.xyz/v0"
helius_api_key = ""
shyft_api_base_url = "https://api.shyft.to"
shyft_api_key = ""
pumpportal_api_data_url = "wss://pumpportal.fun/api/data"
solscan_api_base_url = "https://pro-api.solscan.io/v2.0"
solscan_api_key = ""
[db]
# -- for local
# mysql_url = "mysql+pymysql://root:[email protected]:3306/solana_trade_bot"
# redis_url = "redis://127.0.0.1:6379/0"
# -- for docker
mysql_url = "mysql+pymysql://root:root@mysql:3306/solana_trade_bot"
redis_url = "redis://redis:6379/0"
[sentry]
dsn = ""
traces_sample_rate = 1.0
[log]
level = "debug"
[tg_bot]
token = ""
mode = "private" # private or public, private 意味着机器人是私有的,只有使用激活码才能访问,public 意味着机器人公开,任何人都可以访问
manager_id = 5049063827 # 管理员 id,管理员无视激活码