Viction DApps Integration
To detect Coin98 Extension with Viction
if(window.coin98 || window.ethereum || window.ethereum?.isCoin98){
console.log('Coin98 Extension is installed!');
}To connect Coin98 Extension Wallet
// Connect & get accounts
window.ethereum.request({method: 'eth_accounts'});
// Alias for connection
window.ethereum.request({method: 'eth_requestAccounts'});
//Check if dapp connected
window.ethereum.isConnected();
//Check if the caller's current permissions
window.ethereum.request({method: 'wallet_getPermissions'});
//Check if request the given permissions
window.ethereum.request({method: 'wallet_requestPermissions'});To disconnect Coin98 Extension Wallet
To experience functions
Get Current Account
Check wallet whether exists or not
Sign Transaction
Transfer
Decrypt
Get Encryption Public Key
Encrypt
Add Ethereum Chain
Switch Ethereum Chain
Watch Asset
RPC Request
Experimental MultiChain Connection
Subscription
Methods
Example
To handle events
List of events
Events
Trigger
Method
Description
Last updated