Developers
Search…
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
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!
Previous
Introduction
Next - QTokens
Total Supply
Last modified
8mo ago
Copy link
Contents
QToken
Solidity
Ethers.js