Hi,
Iām trying to do a simple transfer with Moralis but Iām getting āInvalid Token Idā error.
Iām importing the latest web3 library
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
<script src="https://unpkg.com/moralis/dist/moralis.js"></script>
Hereās the code adapted from your example
const web3 = await Moralis.enableWeb3();
const options = { type: "native", receiver: "0x7336BfdA526724B7900c4f5A84B7065295b50E2b", amount: Moralis.Units.ETH("0.5")};
const tx = await Moralis.transfer(options);
and the error:
I tested both rinkeby and mainnet but Iāve got the same result
I might be doing something wrong, many thanks for your help!