Developers
  • Introduction
  • QTokens
    • Transfer
    • Total Supply
    • Underlying Balance
    • Exchange Rate
    • Get Cash
    • Total Borrow
    • Borrow Balance
    • Borrow Rate
    • Supply Rate
    • Total Reserve
    • Reserve Factor
    • Key Events
  • Qore
    • Market List
    • Enter Markets
    • Exit Markets
    • Get Markets In
    • Supply
    • Redeem with QToken
    • Redeem with Underlying
    • Borrow
    • Repay Borrow
    • Repay Borrow Behalf
    • Liquidate Borrow
    • Get Account Liquidity
    • Market Information
    • Close Factor
    • Liquidation Incentive
    • Qubit Distribution Speeds
    • Pending Qubit (or Accrued Qubit)
    • Claim Qubit
    • Key Events
  • Qubit Locker
    • qScore
    • Total qScore
    • Deposit
    • Locked Balance
    • Locked Period
    • Extend Lock Period
    • Unlocked Balance
    • Withdraw
Powered by GitBook
On this page
  • QToken
  • Solidity
  • Ethers.js

Was this helpful?

  1. QTokens

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

function transfer(address recipient, uint amount) external returns (bool);
  • 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

n(<qTokenAddress>);
qToken.transfer(<recipientAddress>, <amount>);

Ethers.js

const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
await qToken.transfer(<recipientAddress>, <amount>);
PreviousIntroductionNextTotal Supply

Last updated 3 years ago

Was this helpful?