Example
Switch Network
import { CHAINS_ID } from '@coin98/wallet-adapter-react';
(async () => {
const result = await switchNetwork(CHAINS_ID.binanceSmartTest, async (error) => {
{
const wallet = window.ethereum;
return await wallet.request({
method: 'wallet_addEthereumChain',
params: [
{
chainId: CHAINS_ID.binanceSmartTest,
chainName: 'Binance Smart Chain Testnet',
nativeCurrency: {
name: 'BNB',
symbol: 'BNB', // 2-6 characters long
decimals: 18,
},
rpcUrls: ['https://data-seed-prebsc-1-s1.binance.org:8545/'],
},
],
});
}
});
};();Send Transaction
Sign Message
Sign Typed Data V1
Sign Typed Data V3
Sign Typed Data V4
ETH Sign
Watch Asset
Get Encryption Public Key
ETH Decrypt
Last updated