Aptos dApp Integration
Install CLV Wallet
const isCLVInstalled = window.clover_aptosconst getCLVWallet = () => {
if ('clover_aptos' in window) {
return window.clover_aptos;
} else {
window.open('https://clv.org/?type=wallet', `_blank`);
}
}Connect to CLV Wallet
const wallet = getCLVWallet();
try {
const response = await wallet.connect();
console.log(response); // { address: string, publicKey: string }
const account = await wallet.account();
console.log(account); // { address: string, publicKey: string }
} catch (error) {
// { code: 500, message: "The request was cancelled."}
}Disconnect CLV Wallet
Transaction Signing
Case 1: Sign and Submit
Case 2: Sign only
Message Signing
Example message and response
Signature Verifying
Last updated