# Getting Started

TIP

This section is a step-by-step tutorial with some concepts, and we recommend that you read it completely. The peer node here below are just examples,Please register here to obtain an real peer node.

# Get TxBoost peer node

First, purchase the service and select the peer node according to the prompts or ask the administrator for the TxBoost peer node . If you want to add the TxBoost peer node as follows:

enode://72ab079154c43997d1d3c8c6cb2de153f0f7be39a0be3bc562e39a7fa21909691bbbb8353792210e10c603531dc09bdb2b9724d8ebcddac76eb230071e6a657a@315.174
6.33:30311

TIP

If you're interested in trying it out, join our Discord

# Connect to TxBoost

By modifying the geth configuration, you can access the service without developing code.

  1. connect to the TxBoost peer node through the command line and take effect in real time:
./geth attach ../data/node/geth.ipc --exec 'admin.addTrustedPeer("enode:72ab079154c43997d1d3c8c6c2de153f0f7be39a0be3b c562e39a7fa21909691bbbb8353792210e10c603531dc09bdb2b9724d8ebcddac76eb230071e6a657a@35.174.116.33:30311")'

WARNING

Please note that this configuration will become invalid after restarting the geth process.

  1. modify the geth configuration and add nodes to the TrustedNodes option of the configuration file config.toml:
vim config.toml
...
[Node.P2P]
TrustedNodes=
"enode:/172ab079154c43997d1d3c8c6cb2de153f0f7be39a0be3bc562e39a7fa21909691
bbbb8353792210e10c603531dc09bdb2b9724d8ebcddac76eb230071e6a657a@35.174
16.33:30311"

TIP

In order to ensure stable service quality, we strongly recommend that you modify the configuration file to avoid connection loss after service restart.

  1. check whether the link is successful:

Export all connections to peers.txt via the command line tool

/home/ubuntu/bsc-geth/geth attach /home/ubuntu/data/node/geth.ipc --exec 'admin.peers'>peers.txt

Check if the connection is successful, find out if peers.txt contains a specific node

grep 72ab079154c43997d1d3c8 peers.txt