-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.template.toml
121 lines (95 loc) · 3.95 KB
/
config.template.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
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
[NODE]
# The file directory where the node can store its persistent data
data_dir = "<path to empty folder>"
# 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
# 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
[[SOURCE.XRPLS]]
# A public websocket endpoint provided by a rippled or clio node
# The node will pull all relevant ledger data from there
url = "wss://xrplcluster.com"
connections = 2
[[SOURCE.XRPLS]]
url = "wss://s2.ripple.com"
connections = 2
[[SOURCE.XRPLS]]
url = "wss://s1.ripple.com"
[[SOURCE.TOKENLISTS]]
# Tokenlists 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/tokens.toml"
fetch_interval = 30
trust_level = 3
[SOURCE.ISSUERDOMAIN]
# 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
[SOURCE.XRPLF]
# The XRPL Foundation provides token self-assessments made by issuers
# The node fetches wether a token issuer has completed it
fetch_interval = 60
[SOURCE.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
[SOURCE.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
# [SOURCE.XUMM]
# xumm.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.xumm.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
# [SOURCE.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
#
# refresh_interval = 600
# api_key = "<key>"
# [SOURCE.TWITTER]
# twitter.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://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api
#
# bearer_token = "paste_here"
# fetch_interval = 3600
# max_requests_per_minute = 60
[API]
# 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"
# 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 XUMM, Bithomp and Twitter all define an icon for a token, the one from XUMM will be used.
source_ranking = [
'ledger', # on-chain values, such as the "Domain" field
'tokenlist', # .toml files published by trusted entities
'issuer/domain', # .toml files published by the token issuer, linked via the "Domain" field
'xumm/curated', # names and icons, manually set by Xumm
'xumm/avatar', # user defined icons from Xumm
'gravatar',
'bithomp',
'xrpscan',
'twitter'
]