Transfer
OErc20 / OEther
function transfer(address recipient, uint256 amount) returns (bool)
recipient
: The transfer recipient address.amount
: The amount of oTokens to transfer.RETURN
: Returns a boolean value indicating whether or not the operation succeeded.
Solidity
OEther oToken = OEther(0x3FDB...);
oToken.transfer(0xABCD..., 100000000000);
Web3 1.0
const oToken = OErc20.at(0x3FDA...);
await oToken.methods.transfer(0xABCD..., 100000000000).send({from: 0xSender});
Last modified 8mo ago