Skip to main content

Polygon Config

Precondition

Please download the latest version of favorx first.

If the configuration is not filled in properly, the accounting function may not work properly (you will be unable to obtain test coins and exchange cheques properly)

In order to get the node up and running properly during the pre-testnet phase, please ensure that the following configuration is correct

Polygon Mainnet

Network ID

network-id: "18"

Boot Node

Modify the bootnode to

bootnode: 
- /ip4/107.167.2.249/tcp/1800/p2p/12D3KooWEnr66XXK4Y85J1oRZasJUMLj41iexzXSE7DPKwJD3Ao3
- /ip6/2610:150:c066::b5f7:4c24/tcp/1800/p2p/12D3KooWEnr66XXK4Y85J1oRZasJUMLj41iexzXSE7DPKwJD3Ao3

Chain

The chain endpoint related to Oracle, traffic, and resolver options is configured as follows

Chain endpoint

chain-endpoint: "https://polygon-mainnet.public.blastapi.io"

Oracle

To register files, you'd better modify the configuration to

oracle-contract-addr: "0xDecc6cCfe1E5369EF8e0d30033EF476b075E49bB"

Example

For the complete configuration file, please refer to the following:

allow-private-cidrs: false
api-addr: :1633
api-file-buffer-multiple: 8
bin-max-peers: 50
bootnode:
- /ip4/107.167.2.249/tcp/1800/p2p/12D3KooWEnr66XXK4Y85J1oRZasJUMLj41iexzXSE7DPKwJD3Ao3
- /ip6/2610:150:c066::b5f7:4c24/tcp/1800/p2p/12D3KooWEnr66XXK4Y85J1oRZasJUMLj41iexzXSE7DPKwJD3Ao3
bootnode-mode: false
cache-capacity: "80000"
chain-endpoint: "https://polygon-mainnet.public.blastapi.io"
cors-allowed-origins: ["*"]
data-dir: FavorLabs
db-driver: leveldb
db-path: ""
debug-api-addr: :1635
debug-api-enable: true
dev-mode: false
full-node: true
gateway-mode: false
global-pinning-enable: false
help: false
light-max-peers: 100
nat-addr: ""
network-id: "18"
oracle-contract-addr: "0xDecc6cCfe1E5369EF8e0d30033EF476b075E49bB"
p2p-addr: :1634
p2p-quic-enable: false
p2p-ws-enable: false
password: "FavorLabs"
password-file: ""
restricted: false
route-alpha: 2
standalone: false
token-encryption-key: ""
tracing-enable: false
tracing-endpoint: 127.0.0.1:6831
tracing-service-name: FavorLabs
verbosity: info
welcome-message: ""
ws-addr: :1637

Polygon Testnet

Network ID

network-id: "19"

Boot Node

Modify the bootnode to

bootnode: 
- /ip4/107.167.2.24/tcp/1817/p2p/12D3KooWJQqqbmGnVAexFxQnzrzu86eJ1ZrwFQQNQDe12Gsn7pkA
- /ip6/2610:150:c009:d:216:3cff:fe4d:9031/tcp/1817/p2p/12D3KooWJQqqbmGnVAexFxQnzrzu86eJ1ZrwFQQNQDe12Gsn7pkA

Chain

The chain endpoint related to Oracle, traffic, and resolver options is configured as follows

Chain endpoint

chain-endpoint: "https://polygon-testnet.public.blastapi.io"

Oracle

To register files, you'd better modify the configuration to

oracle-contract-addr: "0x21aC8FE412Fd058eD29a67a69c81EF08fA34f443"

Example

For the complete configuration file, please refer to the following:

allow-private-cidrs: false
api-addr: :1633
api-file-buffer-multiple: 8
bin-max-peers: 50
bootnode:
- /ip4/107.167.2.24/tcp/1817/p2p/12D3KooWJQqqbmGnVAexFxQnzrzu86eJ1ZrwFQQNQDe12Gsn7pkA
- /ip6/2610:150:c009:d:216:3cff:fe4d:9031/tcp/1817/p2p/12D3KooWJQqqbmGnVAexFxQnzrzu86eJ1ZrwFQQNQDe12Gsn7pkA
bootnode-mode: false
cache-capacity: "80000"
chain-endpoint: "https://polygon-testnet.public.blastapi.io"
cors-allowed-origins: ["*"]
data-dir: FavorLabs
db-driver: leveldb
db-path: ""
debug-api-addr: :1635
debug-api-enable: true
dev-mode: false
full-node: true
gateway-mode: false
global-pinning-enable: false
help: false
light-max-peers: 100
nat-addr: ""
network-id: "19"
oracle-contract-addr: "0x21aC8FE412Fd058eD29a67a69c81EF08fA34f443"
p2p-addr: :1634
p2p-quic-enable: false
p2p-ws-enable: false
password: "FavorLabs"
password-file: ""
restricted: false
route-alpha: 2
standalone: false
token-encryption-key: ""
tracing-enable: false
tracing-endpoint: 127.0.0.1:6831
tracing-service-name: FavorLabs
verbosity: info
welcome-message: ""
ws-addr: :1637