Working with KeepKey Transactions
Bitcoin (BTC)
Manage your Bitcoin accounts and send transactions securely with KeepKey.
const accounts = await window.keepkey.bitcoin.request({
method: 'request_accounts',
});
setAccount(accounts[0]);
example:
Get Bitcoin Account
const balance = await window.keepkey.bitcoin.request({
method: "request_balance",
});
Bitcoin Balance Checker
Get your Bitcoin account balance instantly using KeepKey
returned data:
#Send Bitcoin
const txParams = {
amount: {
amount: amount,
decimals: 8,
},
asset: {
chain: 'bitcoin',
symbol: 'BTC',
ticker: 'BTC',
},
memo: '',
recipient: address,
};
try {
const signedTx = await window.keepkey.bitcoin.request({
method: 'transfer',
params: [txParams],
});
setTxId(signedTx.txId); // Assume txId is part of the response
setLoading(false);
} catch (err) {
setError('Transaction failed: ' + err.message);
setLoading(false);
}
Example:
Send Bitcoin
Transfer Bitcoin securely using KeepKey
Dogecoin (DOGE)
Send Dogecoin transactions with KeepKey.
Get Dogecoin Account
Bitcoin Balance Checker
Get your Dogecoin account balance instantly using KeepKey
Send Bitcoin
Transfer Bitcoin securely using KeepKey
Dash (DASH)
Sign and send Dash transactions securely.
Send Bitcoin
Transfer Bitcoin securely using KeepKey
Bitcoin Cash (BCH)
Manage Bitcoin Cash and send BCH transactions using KeepKey.
Send Bitcoin
Transfer Bitcoin securely using KeepKey
Litecoin (LTC)
Manage Litecoin and send LTC transactions using KeepKey.
Send Bitcoin
Transfer Litecoin securely using KeepKey