Onyx Protocol


Transfer is an ERC-20 method that allows accounts to send tokens to other Ethereum addresses. A oToken transfer will fail if the account has entered that oToken market and the transfer would have put the account into a state of negative liquidity.
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.
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});