eckoWALLET API
Welcome to eckoWALLET’s Developer Documentation. eckoWALLET is a user-friendly and robust Kadena-native wallet designed for seamless interaction with dApps on the Kadena network.
`Detecting eckoWALLET
To verify if the browser is running eckoWALLET use window.kadena:
Connecting to eckoWALLET
Connecting to eckoWALLET effectively means to access the user's Kadena account(s).
With this code, a pending promise for kadena.request()
was created. NETWORKID
could be mainnet01
or testnet04
for example.
Check Connection status
To check the connection status you can send a kda_checkStatus
request:
If the selected account on eckoWALLET is connected with current DAPP, the response will be
If not, the response will be:
Get network info
To get eckoWALLET network info you can use kadena.request function with kda_getNetwork method.
You will receive the network info from eckoWALLET:
Get account information
To retrieve the current account data from eckoWALLET just send a request with kda_requestAccount
method.
You will receive a response like this:
Disconnect from eckoWALLET
If you want to disconnect your DAPP from eckoWALLET, simply send a disconnect request
Send Tokens to another account
Example request If users want to send Kadena tokens to another account
Sign command
If you want to sign custom command, you have to use kda_requestSign
request method.
(eckoWALLET will open a confirmation window for the user).
EckoWALLET events
This sections details the events emitted via that eckoWALLET API. There are many events triggered by eckoWALLET, you can listen for events such as the above ones:
Account changed
Triggered when user switches account
The res_accountChange
event payload is
Status changed
Triggered on kda_checkStatus
event dispatch
Last updated