Using GO payment interfaces
1. Using Go BITCOIN payment interface
Please, check <configurator>/global/config.yaml content (using correct <gitlab-group>
in service_image name):
Testnet BITCOIN PI (stage environment):
bitcoin:
id: "BITCOIN-PI"
enabled: true
service_image: gitlab.tunex.io:5050/<gitlab-group>/addons/utxo-go-pi
cryptonode_image: none #gitlab.tunex.io:5050/marionette-stack/public/bitcoind24v
title: "BITCOIN TESTNET"
subtitle: "BITCOIN testnet"
description: "Testnet (0)"
logo_url: "https://raw.githubusercontent.com/nsart/coin-logos/master/btc.png"
verbose: 0
network: testnet
rpchost: bitcoind
rpcport: 18332
rpcuser: admin
rpcpassword: password
port: 18333
explorer_address: "https://blockchain.info/btc-testnet/address/#{address}"
explorer_transaction: "https://blockchain.info/btc-testnet/tx/#{txid}"
wait_confirmation_timeout: 15000
min_confirmations: 6
max_request_blocks: 10
Mainnet BITCOIN PI (production environment):
bitcoin:
id: "BITCOIN-PI"
enabled: true
service_image: gitlab.tunex.io:5050/<gitlab-group>/addons/utxo-go-pi
cryptonode_image: none #gitlab.tunex.io:5050/marionette-stack/public/bitcoind24v
title: "BITCOIN"
subtitle: "BITCOIN"
description: "Mainnet"
logo_url: "https://raw.githubusercontent.com/nsart/coin-logos/master/btc.png"
verbose: 0
network: mainnet
rpchost: bitcoind
rpcport: 8332
rpcuser: admin
rpcpassword: password
port: 8333
explorer_address: "https://blockchain.info/btc/address/#{address}"
explorer_transaction: "https://blockchain.info/btc/tx/#{txid}"
wait_confirmation_timeout: 15000
min_confirmations: 6
max_request_blocks: 10
In <configurator>/templates/compose/paymentinterfaces.yaml.t correct following sections:
{{#if payment_interfaces.bitcoin.enabled}}
{{payment_interfaces.bitcoin.id}}:
image: {{payment_interfaces.bitcoin.service_image}}
hostname: {{payment_interfaces.bitcoin.id}}
restart: always
command: ./main
environment:
RPC_USER: "{{payment_interfaces.bitcoin.rpcuser}}"
RPC_PASSWORD: "{{payment_interfaces.bitcoin.rpcpassword}}"
RPC_HOST: "{{payment_interfaces.bitcoin.rpchost}}"
NETWORK: "{{payment_interfaces.bitcoin.network}}"
RPC_PORT: "{{payment_interfaces.bitcoin.rpcport}}"
PORT: "{{payment_interfaces.bitcoin.port}}"
EXPLORER_ADDRESS: {{payment_interfaces.bitcoin.explorer_address}}
EXPLORER_TRANSACTION: {{payment_interfaces.bitcoin.explorer_transaction}}
LOGLEVEL: {{log_level}}
PREFIX: {{payment_interfaces.bitcoin.id}}
TITLE: {{payment_interfaces.bitcoin.title}}
SUBTITLE: {{payment_interfaces.bitcoin.subtitle}}
DESCRIPTION: {{payment_interfaces.bitcoin.description}}
WAIT_CONFIRMATION_TIMEOUT: {{payment_interfaces.bitcoin.wait_confirmation_timeout}}
MIN_CONFIRMATIONS: {{payment_interfaces.bitcoin.min_confirmations}}
MAX_REQUEST_BLOCKS: {{payment_interfaces.bitcoin.max_request_blocks}}
VERBOSE: {{payment_interfaces.bitcoin.verbose}}
depends_on:
- api
- db-bridge
{{/if}}
2. Using Go ETH payment interface
Please, check <configurator>/global/config.yaml content (using correct <gitlab-group>
in service_image name):
Sepolia ETH PI or/and testnt BSC PI (stage environment):
Mainnet ETH PI or/and BSC-PI (production environment):
In <configurator>/templates/compose/paymentinterfaces.yaml.t correct following sections:
3. Using Go TRON payment interface
Please, check <configurator>/global/config.yaml content (using correct <gitlab-group>
in service_image name):
Testnet TRON PI (stage environment):
Mainnet TRON PI (production environment):
In <configurator>/templates/compose/paymentinterfaces.yaml.t correct following sections: