lamports
: Amount of lamports to send (1 SOL = 1,000,000,000 lamports)to
: The recipient’s Solana addresswithChainId
: The CAIP-2 chain identifier (e.g., “solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp” for Solana mainnet)
MpcError.addressNotFound
if no Solana address is found for the walletPortalSolError.failedToGetLatestBlockhash
if unable to get the latest blockhashPortalSolError.failedToGetTransactionHash
if transaction signing/sending fails- Errors from
SolanaSwift.PublicKey
initialization if addresses are invalid
- Run
generate
orrecover
if needed. - Amount must be specified in lamports (1 SOL = 1,000,000,000 lamports)
- The transaction is automatically signed and sent to the network
- The fee is paid by the sender’s address
- Consider adding extra amount for transaction fees
- The function waits for transaction submission but not confirmation