@secux/app-bch
SecuX Hardware Wallet BCH API
Usage
import { SecuxBCH } from "@secux/app-bch";
First, create instance of ITransport.
Examples
-
Get address by BIP32 path.
-
Sign transaction.
const inputs = [
{
hash: "b4a0e0afd8bf99b8360a22a091b1601dc5bdbdda1ab2ab2d7e74f60f97a1f4ad",
vout: 0,
satoshis: 77576,
path: "m/44'/145'/0'/0/0",
},
{
hash: "5b6783feca093f4051b46971a225a4ad0d85e4a7025003c33eee9228f177ae1b",
vout: 0,
satoshis: 117885,
path: "m/44'/145'/1'/0/0"
}
];
const to = {
address: "qqj3dr364rw9eyv4ke848kpu8aheuf8llc9pwu3smu",
satoshis: 11111
};
const utxo = {
path: "m/44'/145'/0'/0/2",
satoshis: 16666,
};
const { raw_tx } = await device.sign(inputs, { to, utxo });
API doc
Similar to @secux/app-btc.