options
object and settype:"native"
receiver: "0x000..." //wallet address
Moralis.Units.ETH
to specify the amount in ETH (same goes for BSC and Polygon).Moralis.Units.ETH
is a helper function that will convert your ETH amount to wei which is required in order to construct the transaction.Moralis.transfer()
returns a transaction response after it is executed. The below page shows how to consume the data returned.