Developers
Search…
Transfer
transfer is a BEP-20 method that allows accounts to send tokens to other Binance addresses. A qToken transfer will fail if the account has entered that qToken market and the transfer would have put the account into a state of negative liquidity.

QToken

1
function transfer(address recipient, uint amount) external returns (bool);
Copied!
  • recipient: The transfer recipient address.
  • amount: The amount of aTokens to transfer.
  • RETURN: Returns a boolean value indicating whether or not the operation succeeded.

Solidity

1
n(<qTokenAddress>);
2
qToken.transfer(<recipientAddress>, <amount>);
Copied!

Ethers.js

1
const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
2
await qToken.transfer(<recipientAddress>, <amount>);
Copied!
Last modified 2mo ago
Copy link