File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,19 +17,21 @@ rpc = [
1717start_block = 12000000
1818end_block = 12000500
1919
20- [[ chains ]]
21- caip2 = " eip155:137 "
22- rpc = [
23- " https://polygon-rpc.com " ,
24- " https://rpc.ankr. com/polygon " ,
25- ]
26- end_block = 55000500
20+ # Polygon public RPCs often require API keys. Commented out by default.
21+ # [[chains]]
22+ # caip2 = "eip155:137"
23+ # rpc = [
24+ # "https://polygon- rpc.com",
25+ # "https://rpc.ankr.com/polygon",
26+ # ]
2727
2828[[chains ]]
2929caip2 = " solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
3030rpc = [
3131 " https://api.mainnet-beta.solana.com" ,
3232]
33+ max_concurrent = 1
34+ rpc_delay_ms = 500
3335
3436[assets .ETH_NATIVE ]
3537network = " eip155:1"
@@ -46,16 +48,6 @@ network = "eip155:8453"
4648contract = " 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
4749decimals = 6
4850
49- [assets .MATIC_NATIVE ]
50- network = " eip155:137"
51- contract = " native"
52- decimals = 18
53-
54- [assets .USDC_POLY ]
55- network = " eip155:137"
56- contract = " 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"
57- decimals = 6
58-
5951[assets .SOL_NATIVE ]
6052network = " solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
6153contract = " native"
Original file line number Diff line number Diff line change @@ -132,21 +132,18 @@ start_block = 12000000
132132end_block = 12000500
133133
134134# Omit both start_block and end_block → scans last 1,000 blocks (EVM) / 500 slots (Solana) / 6 blocks (Bitcoin)
135- [[chains ]]
136- caip2 = " eip155:137"
137- rpc = [" https://polygon-rpc.com" ]
138-
139- # Omit only end_block → scans from start_block to the node's latest block
140- [[chains ]]
141- caip2 = " eip155:8453"
142- rpc = [" https://mainnet.base.org" ]
143- start_block = 12000000
135+ # NOTE: Public Ethereum RPCs usually work. Polygon public RPCs often require API keys.
136+ # [[chains]]
137+ # caip2 = "eip155:137"
138+ # rpc = ["https://polygon-rpc.com"]
144139
145140[[chains ]]
146141caip2 = " solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
147142rpc = [" https://api.mainnet-beta.solana.com" ]
148143start_block = 250000000
149144end_block = 250000100
145+ max_concurrent = 1
146+ rpc_delay_ms = 500
150147
151148[[chains ]]
152149caip2 = " bip122:000000000019d6689c085ae165831e93"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use tokio::sync::Mutex;
1010
1111const SOL_DECIMALS : u32 = 9 ;
1212const DEFAULT_RPC_DELAY_MS : u64 = 200 ;
13- const DEFAULT_MAX_CONCURRENT : usize = 5 ;
13+ const DEFAULT_MAX_CONCURRENT : usize = 1 ;
1414
1515pub struct SolanaScanner {
1616 pub rpc_urls : Vec < String > ,
You can’t perform that action at this time.
0 commit comments