Since version 7.2.4 Coin98 Wallet Extension support Wallet Standard, it's automatically integrated with Sui Wallet Kit & Suiet Wallet Kit If you want manual integration, please read carefully guide below:
Manual Integration
Coin98 Wallet exposes Sui Wallet Interface at window.coin98.sui
API Reference:
Connect
constaccounts:string[] =awaitwindow.coin98.sui.connect();// Handle your transformation from here for list of address;
Sign Transaction Block
importtype { SignedTransaction, TransactionBlock, SuiTransactionBlockResponse } from"@mysten/sui.js";interfaceSuiSignTransactionBlockInput { transactionBlock:TransactionBlock;}consttxBlockInput:SuiSignTransactionBlockInput= { transactionBlock: { // Your tx block } }constsigned:SignedTransaction=window.coin98.sui.signTransactionBlock(txBlockInput)// If you want to sign and broadcast, try the following apiconstexecuteResult:SuiTransactionBlockResponse=awaitwindow.coin98.sui.signAndExecuteTransactionBlock(txBlockInput)