Repository navigation
Expand file tree
/
Copy pathconfig.template.toml
More file actions
130 lines (105 loc) · 4.3 KB
/
Copy pathconfig.template.toml
File metadata and controls
130 lines (105 loc) · 4.3 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[NODE]
# The file directory where the node can store its persistent data
data_dir = "<path to empty folder>"
[LEDGER]
# Any ledgers before this sequence will be ignored
# For full-history livenet, this value should be 32570, beause the first 32569 ledgers were lost
backfill_to_ledger = 32570
# How many ledger objects per ledger_data request to fetch
snapshot_chunk_size = 64000
# How many ledgers to fetch in advance before writing them to the database
stream_queue_size = 100
# Token exchanges where the XRP side is below this amount are considered dust and not recorded
# Remove this line to record all exchanges
filter_dust_below_xrp = "0.0001"
[[LEDGER.SOURCE]]
# A public websocket endpoint provided by a xrpld or clio node
# The node will pull all relevant ledger data from there
url = "wss://xrplcluster.com"
[[LEDGER.SOURCE]]
url = "wss://s1.ripple.com"
[[LEDGER.SOURCE]]
url = "wss://s2.ripple.com"
[[TRUSTLIST]]
# Trustlists are manually published lists containing token metadata according to XLS-26
# https://github.com/XRPLF/XRPL-Standards/discussions/71
# You can add as many as you want
# The id field is used for ranking. Read below at "source_ranking"
# The trust_level field defines the maximum possible trust level the list can set for any token
id = "xrplmeta"
url = "https://xrplmeta.org/trusted.toml"
fetch_interval = 30
trust_level = 3
[[TRUSTLIST]]
id = "xaman"
url = "https://unhosted.exchange/tokens.toml"
fetch_interval = 60
trust_level = 3
[TOMLS]
# All issuing accounts with the Domain field set are being automatically crawled for
# DOMAIN/.well-known/xrp-ledger.toml. If the issuer published metadata about their token
# according to XLS-26, the data will be copied and presented by the server.
concurrency = 3
connection_timeout = 10
fetch_interval = 600
[XRPSCAN]
# xrpscan.com provides usernames, social media links and verifications of XRPL accounts.
# https://docs.xrpscan.com/api-doc.html#get-names
fetch_interval = 600
[GRAVATAR]
# gravatar.com provides avatar images for XRPL accounts that are linked via the on-chain Account "EmailHash" field.
fetch_interval = 43200
max_requests_per_minute = 60
# [XAMAN]
# xaman.app provides a list of curated assets, KYC status and avatar images.
# It is required to obtain an API key to use this service.
# https://apps.xaman.dev
#
# api_key = "paste_here"
# api_secret = "paste_here"
# fetch_interval_assets = 60
# fetch_interval_kyc = 43200
# fetch_interval_avatar = 43200
# max_requests_per_minute = 30
# [BITHOMP]
# bithomp.com provides icons, usernames, website and social media links for XRPL accounts.
# It is required to obtain an API key for this service.
# https://bithomp.com/developer
#
# fetch_interval = 600
# api_key = "<key>"
# [X]
# x.com can provide icons, display names, website links and descriptions for both XRPL accounts and tokens.
# It is required to obtain an API key for this service.
# https://docs.x.com/x-api/getting-started/getting-access
#
# bearer_token = "paste_here"
# fetch_interval = 3600
# max_requests_per_minute = 60
[SERVER]
# The server listens on the specified port for incoming HTTP (REST + WebSocket) connections.
port = 4080
# Set this to the URL under which your node is reachable.
# This is required for the API to correctly return the URLs of locally cached media files, such as token icons.
# public_url = "https://example.com"
# Rate limiting per client IP. Every IP has a bucket of points that refills over time.
# Each API call costs a number of points depending on the defined `cost` in src/srv/api.js
# Set ratelimit_bucket_size = 0 to disable rate limiting.
ratelimit_bucket_size = 300
ratelimit_refill_per_second = 10
# ratelimit_real_ip_header = "X-Real-IP"
# ratelimit_whitelist = ["127.0.0.1"]
# Multiple sources can give conflicting data for the same field. This array defines who's data has precedence,
# from highest to lowest. Example for the values below:
# if Xaman, Bithomp and X all define an icon for a token, the one from Xaman will be used.
source_ranking = [
'ledger', # on-chain values, such as the "Domain" field
'trustlist', # .toml files published by trusted entities
'issuer/domain', # .toml files published by the token issuer, linked via the "Domain" field
'xaman/curated', # names and icons, manually set by Xaman
'xaman/avatar', # user defined icons from Xaman
'gravatar',
'bithomp',
'xrpscan',
'x'
]