# This configuration file only contains the necessary configurations for the mainnet deployment. # All options' descriptions can be found via `fnn --help` and be overridden by command line arguments or environment variables. fiber: listening_addr: "/ip4/0.0.0.0/tcp/8228" # Additional listening addresses are appended to listening_addr. # listening_addrs: # - "/ip6/::/tcp/8228" # Node name announced to the Fiber network. It is shown in RPC responses, # the TUI header, and the network graph. # announced_node_name: "my-fiber-node" # Disable automatic peer reconnect backoff after disconnects. # enable_peer_reconnect_backoff: true bootnode_addrs: - "/ip4/43.199.24.44/tcp/8228/p2p/QmZ2gCTfEF6vKsiYFF2STPeA2rRLRim9nMtzfwiE7uMQ4v" - "/ip4/54.255.71.126/tcp/8228/p2p/QmcMLnWraRyxd7PFRgvn1QeYRQS2DGsP6fPFCQjtfMs5b2" announce_listening_addr: true announced_addrs: # If you want to announce your fiber node public address to the network, you need to add the address here. # Please change the ip to your public ip accordingly, and make sure the port is open and reachable from the internet. # - "/ip4/YOUR-FIBER-NODE-PUBLIC-IP/tcp/8228" chain: mainnet ## SOCKS5 proxy settings ## Uncomment to route all outbound P2P connections through a SOCKS5 proxy (e.g. Tor). # proxy: # proxy_url: "socks5://127.0.0.1:9050" # ## Use random username/password for each proxy connection to improve Tor stream isolation. [default: true] # proxy_random_auth: true ## Tor onion hidden service settings ## Uncomment to make this node reachable via a .onion address. ## Requires a running Tor daemon with ControlPort enabled. # onion: # listen_on_onion: false # ## Tor SOCKS5 proxy url for routing .onion address connections. e.g. 127.0.0.1:9050 # onion_server: "127.0.0.1:9050" # ## The local address that the onion service forwards traffic to. # ## If not set, it is derived from listening_addr. e.g. "127.0.0.1:8228" # p2p_listen_address: "127.0.0.1:8228" # ## Path to store the onion service private key. [default: $BASE_DIR/fiber/onion_private_key] # onion_private_key_path: "" # ## Tor controller address. [default: 127.0.0.1:9051] # tor_controller: "127.0.0.1:9051" # ## Tor controller hashed password (if HashedControlPassword is set in torrc). # tor_password: "" # ## The external port exposed by the onion service. [default: 8228] # onion_external_port: 8228 # ## Maximum time in seconds to wait for the onion service to register with Tor. [default: 5] # onion_service_start_timeout: 5 # lock script configurations related to fiber network # https://github.com/nervosnetwork/fiber-scripts/blob/main/deployment/mainnet/migrations/2025-02-28-114908.json scripts: - name: FundingLock script: code_hash: 0xe45b1f8f21bff23137035a3ab751d75b36a981deec3e7820194b9c042967f4f1 hash_type: type args: 0x cell_deps: - type_id: code_hash: 0x00000000000000000000000000000000000000000000000000545950455f4944 hash_type: type args: 0x64818d82a372312fb007c480391e1b9759d21b2c7f7959b9c177d72cdc243394 - cell_dep: out_point: tx_hash: 0x95006eee7b4c0c8ad66e0514c88ed0ae43fc8db27793427de86a348ec720b9d6 # ckb_auth index: 0x0 dep_type: code - name: CommitmentLock script: code_hash: 0x2d45c4d3ed3e942f1945386ee82a5d1b7e4bb16d7fe1ab015421174ab747406c hash_type: type args: 0x cell_deps: - type_id: code_hash: 0x00000000000000000000000000000000000000000000000000545950455f4944 hash_type: type args: 0xdb16e6dcb17f670e5fb7c556d81e522ec5edb069ad2fa3e898e7ccea6c26a39f - cell_dep: out_point: tx_hash: 0x95006eee7b4c0c8ad66e0514c88ed0ae43fc8db27793427de86a348ec720b9d6 #ckb_auth index: 0x0 dep_type: code rpc: # By default RPC only binds to localhost, thus it only allows accessing from the same machine. # Allowing arbitrary machines to access the JSON-RPC port is dangerous and strongly discouraged. # Please strictly limit the access to only trusted machines. # If you bind RPC to a public address, set biscuit_public_key to enable authentication. # See https://github.com/nervosnetwork/fiber/blob/main/docs/biscuit-auth.md for how to generate and configure the biscuit key pair. # biscuit_public_key: "" # enabled_modules: # - cch # - channel # - graph # - payment # - info # - invoice # - peer # - watchtower # - pubsub # - dev # debug builds only # - prof # requires the pprof feature listening_addr: "127.0.0.1:8227" ckb: # Replace this with a trusted mainnet CKB RPC endpoint before starting FNN. # The installer requires this endpoint to be configured explicitly. rpc_url: "http://127.0.0.1:8114/" udt_whitelist: ## https://github.com/CKBFansDAO/xudtlogos/blob/f2557839ecde0409ba674516a62ae6752bc0daa9/public/tokens/token_list.json#L548 - name: USDI script: code_hash: 0xbfa35a9c38a676682b65ade8f02be164d48632281477e36f8dc2f41f79e56bfc hash_type: type args: 0xd591ebdc69626647e056e13345fd830c8b876bb06aa07ba610479eb77153ea9f cell_deps: - type_id: code_hash: 0x00000000000000000000000000000000000000000000000000545950455f4944 hash_type: type args: 0x9105ea69838511ca609518d27855c53fed1b5ffaff4cfb334f58b40627d211c4 auto_accept_amount: 10000000 services: - fiber - rpc - ckb