Finnie Wallet
Integrate your dApp with Finnie wallet
useFinnie
To integrate with Finnie use the useFinnie
hook and import it is as easy as:
useFinnie
hook exports many variables and helpers to integrate with Finnie.
connectFinnie
a function to call to try to connect to Finnie. e.g:
When connectFinnie
succeed you'll have:
Your Finnie address in
walletAddress
Both your KOII and Arweave balance in
walletBalance
isFinnieConnected set to
true
When connectFinnie
fail you'll have:
isError
set tofalse
isFinnieConnected
set tofalse
When you're still in the process of connecting to Finnie you'll have isLoading
set to true
e.g:
Calling disconnectFinnie
will disconnect the connection to Finnie.
Finnie Wallet API
When you're connected to Finnie, you can interact with any Finnie exposed API. e.g: The sendKoiiTip
function inside api/finnie.ts used to send KOII from your wallet to another address.
Last updated