Bitcoin Wallet
Getting Started
To develop Bitcoin wallet functionality for Cactus Link, firstly install Cactus Link.
Once Cactus Link is installed, you should find that new browser tabs have a window.cactuslink object available in the
developer console.
Installation Verification
To verify if the browser is running Cactus Link, copy and paste the code snippet below in the developer console:
if (typeof window.cactuslink !== 'undefined') {
console.log('Cactus Link is installed!');
}
Accessing User's Bitcoin Addresses
You can provide a button to allow the user to connect Cactus Link to your application. Clicking this button should call the following method:
cactuslink.requestAccounts()