mega.send()
Last updated
Open the wallet-managed send flow with a token selector and destination input. The wallet handles the full UX — amount entry, token selection, recipient confirmation, and execution.
For direct programmatic transfers from your app, use transfer() instead.
mega.send(request: SendRequest): Promise<TransactionResult>
token
`0x${string}` / 'native'
optional
Pre-select a token. Omit to let the user choose.
destination
`0x${string}`
optional
Pre-fill the destination address.
const result = await mega.send({
token: '0xTokenAddress',
destination: '0xRecipientAddress',
});
if (result.status === 'approved') {
console.log(result.receipt?.hash);
}Shared TransactionResult shape.
Requires an active connected wallet. Reconnect first if status is disconnected.
Last updated