EVM-compatible DApps Integration

This document guides user how to integrate EVM-compatible Blockchains for DApps. This will apply to all the EVM-compatible Blockchains currently supported in Coin98 Wallet.

Supported EVM-compatible Blockchains

  1. Ethereum

  2. Viction

  3. BNB Smart Chain

  4. Polygon

  5. Avalanche C-Chain

  6. Arbitrum

  7. Aurora

  8. Base

  9. Bittorrent Chain

  10. Boba Network

  11. Celo

  12. Chiliz

  13. Conflux

  14. Core

  15. Cronos

  16. Ethereum PoW

  17. f(x) Core EVM

  18. Fantom

  19. GateChain

  20. Gnosis Chain

  21. Harmony

  22. HECO Chain

  23. Humanode

  24. KardiaChain

  25. Klaytn

  26. Kroma

  27. KuCoin Commnunity Chain

  28. Linea

  29. Mantle

  30. Moonbeam

  31. Nautilus

  32. Oasis Network

  33. OKXChain

  34. opBNB

  35. Optimism

  36. PlatON Network

  37. Polygon zkEVM

  38. Ronin

  39. Scroll

  40. StarkNet Theta Network

  41. Theta Network EVM

  42. zkSync Era

  43. Ancient8 (Testnet)

  44. Base (Testnet)

  45. Taiko Jolnir (Testnet)

  46. Mantle (Testnet)

  47. Scroll (Testnet)

  48. ZetaChain (Testnet)

To detect Coin98 Wallet with EVM-compatible Blockchains

To detect whether your browser is running Coin98 Wallet, please use:

Notice: The Coin98 Wallet on EVM JavaScript provider API is specified by EIP-1193 and EIP-6963. Support window.ethereum or window.coin98.provider only (window.web3is unsupported)


To connect Coin98 Wallet

To connect Coin98 Wallet means to access the user's [blockchain - like Ethereum] account(s).


To disconnect Coin98 Wallet

To disconnect Coin98 Wallet, please use:

To experience functions

Once your account is connected, let's start experiencing more functions.‌

Get Current Account

return Promise<Array[String]>

  • If wallet can not be found, return [] instead of throw Error

Check wallet whether exists or not

return Promise<{data: Boolean}>

Sign Transaction

return: Promise<Signature | RPC: 2.0>

Transfer

return Promise<hash>

Decrypt

return Promise<string>

Get Encryption Public Key

return Promise<string>- The public encryption key of the Ethereum account whose encryption key should be retrieved

Encrypt

Add EVM-compatible Chain

result - if the request was successful, and an error otherwise.

Switch Ethereum Chain

Result - if the request was successful, and an error otherwise.

Watch Asset

Result - true if the token was added, false otherwise

RPC Request

return Promise<Ethereum RPC> Currently only support HTTP(s) method Reference: RPC Method

Experimental MultiChain Connection (under maintenance)

You can connect and receive multiChain address at the same time by using the following methods

When your connection is successful, chain's properties will be available for your next request. For example:

Chain's Name can be found at

Subscription

Support subscribe using JSON-RPC notifications. This allows clients to wait for events instead of polling for them. All results will be released at data event.

Methods

Example


To handle events

List of events

Currently we only support some action events from Wallet

Events
Trigger

accountsChanged

Receive when active account changed in Wallet

networkChanged

Receive when active network changed in Wallet

chainChanged

Receive when active chain changed in Wallet

disconnect

Receive when disconnecting from Wallet

close

Alias for disconnect event

Method
Description

on(event, callback)

Add event listener

off(event, callback)

Remove event listener

Last updated