For the complete documentation index, see llms.txt. This page is also available as Markdown.

mega.send()

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.

Signature

mega.send(request: SendRequest): Promise<TransactionResult>

Parameters

Field
Type
Required
Notes

token

`0x${string}` / 'native'

optional

Pre-select a token. Omit to let the user choose.

destination

`0x${string}`

optional

Pre-fill the destination address.

Example

const result = await mega.send({
  token: '0xTokenAddress',
  destination: '0xRecipientAddress',
});

if (result.status === 'approved') {
  console.log(result.receipt?.hash);
}

Response

Shared TransactionResult shape.

Notes

Requires an active connected wallet. Reconnect first if status is disconnected.

Last updated