Esc

Send

Trigger the send flow in the wallet, allowing a user to select a token and a destination before executing the transaction.

You can optionally pass in the token and destination.

import { mega } from '@megaeth-labs/wallet-sdk';

const result = await mega.send({});
Runs on testnet with your wallet
ts
interface SendRequest {
    token?: `0x${string}` | 'native';
    destination?: `0x${string}`;
}

interface TransactionResult {
    status: 'approved' | 'cancelled' | 'error';
    receipt?: TransactionReceipt;
    receipts?: TransactionReceipt[];
    error?: string;
}