Last updated
import Wallet from "@compass/wallet";
export default function() {
const address = '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B';
const wallet = new Wallet(address);
return { wallet };
}import Wallet from "@compass/wallet";
export default async function() {
const address = '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B';
const wallet = new Wallet(address);
const message = 'Hello, World!';
const signedMessage = await wallet.signMessage(message);
return { signedMessage };
}import Wallet from "@compass/wallet";
export default async function() {
const address = '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B';
const wallet = new Wallet(address);
const domain = {/* ... */};
const types = {/* ... */};
const value = {/* ... */};
const signedData = await wallet.signTypedData(domain, types, value);
return { signedData };
}import Wallet from "@compass/wallet";
export default async function() {
const address = '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B';
const wallet = new Wallet(address);
const transaction = {/* ... */};
const transactionReceipt = await wallet.sendTransaction(transaction);
return { transactionReceipt };
}