- Relay direction setting ( both,front,reverse )
- Monitor BTP events
- Send BTP Relay Message
- Gather proofs for the events
-
GoLang 1.19
Mac OSX
brew install go
First of all, you need to check out the source.
git clone https://github.com/icon-project/btp2.git --recurse-submodules
cd ${PROJECT_ROOT}
make relay
Output binaries are placed under bin/
directory.
cd ${PROJECT_ROOT}
make relay-image
${PROJECT_ROOT}/bin/relay save ./config/relay_config.json
- Configuration example
-
'relay_config' setting [Relay config]
-
'chains_config' setting
Key | Description |
---|---|
address | BTPAddress ( btp://${Network}/${BMC Address} ) |
endpoint | Network endpoint |
key_store | Relay keystore |
key_password | Relay keystore password |
type | BTP2 contract type |
${PROJECT_ROOT}/bin/relay start --config ./config/relay_config.json