Submitting a native transaction request
This method allows you to send a native transaction request.
const amountToSend = BigInt("10000000000000000"); //0.1 NATIVE TOKEN (ETH/BNB/AVAX etc)
const value = "0x" + amountToSend.toString(16)const from = userAddress //the address you're sending from (connected users address)
const to = "0x0000000000000000000000000000000000000000" // the address you're sending the transaction to
const data = "0x" // the data which is always 0x when sending a native transactionconst tx = {
from,
to,
data,
value,
},const chainId = 1; // ETH chain idRequest Body
Name
Type
Description
Last updated