Hello, I know which data I need to send for example BNB (code).
But I didn´t found in Metamsk docs, how to send any another token which will be determined by contract address.
Is there anybody who knows how to do it?
Thank you
Ok, I can try It.
This is code which launch transaction of BNB or ETH (it depends which network is choosed):
But I would like to send for example Safemoon (BEP-20), not BNB. Safemoon contract is: 0x42981d0bfbAf196529376EE702F2a9Eb9092fcB5
How to define contract which I want to launch to transaction?
It’s not from the documentation.
I’m answering you based on my experience, and I want to better understand what exactly and in what context you want to do.
Familiarize yourself with openzeppelin features and how the ERC20 standard works
openZeppelin set of interfaces, contracts, and utilities are all related to the ERC20 Token Standard.
You just need to study the documentation and functions to better understand how it works.
You simply call another contract that transfers your tokens to the balance of another wallet. At the same time, payment for interaction with the contract is charged in the native currency of the network like: