Docs
Search…
Docs
English
WELCOME
CORE CONCEPTS
DTOKENS
Mint
Redeem
Redeem Underlying
Borrow
Repay Borrow
Repay Borrow Behalf
Transfer
Liquidate Borrow
Exchange Rate
Get Cash
Total Borrow
Borrow Balance
Borrow Rate
Total Supply
Underlying Balance
Supply Rate
Total Reserves
Reserve Factor
COMPTROLLER
Fixed Rate Market
FAQ
About Dank
Supplying & Earning
Borrowing & Repaying
Liquidations
Governance
Troubleshooting
DEVELOPERS
GitHub
ABOUT US
Our Team
Medium
Twitter
Discord
Telegram
OTHERS
DANK Public Beta Event (ENDED)
Powered By
GitBook
Transfer
Transfer is an ERC-20 method that allows accounts to send tokens to other Ethereum addresses. A dToken transfer will fail if the account has entered that dToken market and the transfer would have put the account into a state of negative liquidity.
DErc20 / DEther
1
function
transfer
(
address recipient
,
uint256 amount
)
returns
(
bool
)
Copied!
recipient
: The transfer recipient address.
amount
: The amount of dTokens to transfer.
RETURN
: Returns a boolean value indicating whether or not the operation succeeded.
Solidity
1
DEther dToken
=
DEther
(
0x3FDB
...
);
2
dToken
.
transfer
(
0xABCD
...
,
100000000000
);
Copied!
Web3 1.0
1
const
dToken
=
DErc20
.
at
(
0x3FDA
...
);
2
await
dToken
.
methods
.
transfer
(
0xABCD
...
,
100000000000
).
send
({
from
:
0xSender
});
Copied!
Previous
Repay Borrow Behalf
Next
Liquidate Borrow
Last modified
9mo ago
Copy link
Contents
DErc20 / DEther
Solidity
Web3 1.0