logo

Openware HDWallet plugin - Ethereum

This peatio plugin is using the openware HDWallet microservice to generate users wallets, sign and broadcast transactions.

This plugin with Openware HDWallet supports ETH native currency and ERC20 tokens on Ethereum blockchain.

#Blockchain configuration

Rinkeby Testnet configuration

KeyValue
NameETH Testnet
Clientparity
Serverhttps://rinkeby.infura.io/v3/${INFURA PROJECT ID}
Min confirmations1
Keyeth-rinkeby
Explorer addresshttps://rinkeby.etherscan.io/address/#{address}
Explorer transactionhttps://rinkeby.etherscan.io/tx/#{txid}

Mainnet configuration

KeyValue
NameETH Mainnet
Clientparity
Serverhttps://mainnet.infura.io/v3/${INFURA PROJECT ID}
Keyeth-mainnet
Explorer addresshttps://etherscan.io/address/#{address}
Explorer transactionhttps://etherscan.io/tx/#{txid}
Min confirmations10

#Wallets configuration

Wallets can be configured through Tower in Settings > Wallets section.

Deposit wallet

KeyValueDescription
NameETH/ERC20 Deposit WalletName of the wallet
StatusActiveEnable the wallet
Blockchain keyeth-mainnetBlockchain key configured before (eth-rinkeby for Rinkeby testnet)
Gateway Clienthttps://mainnet.infura.io/v3/${INFURA PROJECT ID}RPC REST of blockchain node (https://rinkeby.infura.io/v3/${INFURA PROJECT ID} for rinkeby testnet)
Address-The address of the deposit wallet is not used for Ethereum blockchain, you can set anything.
KinddepositConfigure this wallet as a deposit wallet.
Maximum balance0.0Unused for deposit wallets.
URI (in properties)https://hdwallet/api/v2/hdwalletURL of the openware HDWallet microservice

Example from the console:

Wallet.create!(
  blockchain_key: "eth-mainnet",
  name: "ETH/ERC20 Deposit Wallet",
  address: "-",
  gateway: "ow-hdwallet-eth",
  kind: "deposit",
  settings: {uri: "https://hdwallet/api/v2/hdwallet", gateway_url: "https://mainnet.infura.io/v3/${INFURA PROJECT ID}"},
  max_balance: 0,
  status: "active"
)

Hot wallet

KeyValueDescription
NameETH/ERC20 Hot Wallet
StatusActiveEnable the wallet
Blockchain keyeth-mainnetBlockchain key configured before (eth-rinkeby for Rinkeby testnet)
Gateway Clienthttps://mainnet.infura.io/v3/${INFURA PROJECT ID}RPC REST of blockchain node (https://rinkeby.infura.io/v3/${INFURA PROJECT ID} for rinkeby testnet)
AddressLeave the address empty for peatio to generate it automatically.
KindhotConfigure this wallet as a hot wallet.
Maximum balance10000Once this amount reached, deposits will be collected to warm and cold wallets.
URI (in properties)https://hdwallet/api/v2/hdwalletURL of the openware HDWallet microservice

Example from the console:

Wallet.create!(
  blockchain_key: "eth-mainnet",
  name: "ETH/ERC20 Hot Wallet",
  address: "",
  gateway: "ow-hdwallet-eth",
  kind: "hot",
  settings: {uri: "https://hdwallet/api/v2/hdwallet", gateway_url: "https://mainnet.infura.io/v3/${INFURA PROJECT ID}"},
  max_balance: 10000,
  status: "active"
)

Fee wallet

KeyValueDescription
NameETH/ERC20 Fee Wallet
StatusActiveEnable the wallet
Blockchain keyeth-mainnetBlockchain key configured before (eth-rinkeby for Rinkeby testnet)
Gateway Clienthttps://mainnet.infura.io/v3/${INFURA PROJECT ID}RPC REST of blockchain node (https://rinkeby.infura.io/v3/${INFURA PROJECT ID} for rinkeby testnet)
AddressLeave the address empty for peatio to generate it automatically.
KindfeeConfigure this wallet as a hot wallet.
Maximum balance
URI (in properties)https://hdwallet/api/v2/hdwalletURL of the openware HDWallet microservice

Example from the console:

Wallet.create!(
  blockchain_key: "eth-mainnet",
  name: "ETH/ERC20 Fee Wallet",
  address: "",
  gateway: "ow-hdwallet-eth",
  kind: "hot",
  settings: {uri: "https://hdwallet/api/v2/hdwallet", gateway_url: "https://mainnet.infura.io/v3/${INFURA PROJECT ID}"},
  max_balance: 10000,
  status: "active"
)