Skip to Content
關於
課程
學習中心
部落格
文件
moon
繁體中文
English
한국어
nav-icon
achievement
關閉
關於
課程
學習中心
部落格
文件
moon
繁體中文
English
한국어
achievement
Quiz 4.3
Review and test your knowledge on Send and receive tokens (beyond XRP) with React.js.
Why is a trust line necessary for transactions with tokens and currency?
A) By establishing trust lines with different assets, users can participate in trustless trading and make atomic swaps between assets directly on the XRPL without relying on a centralized intermediary.
B) Without trust lines, accounts could be subject to receiving assets or tokens that they do not want to receive.
C) We use trust line as a means of consenting to receive currency or a token.
D) All of the above
Which of the following statements best summarizes how we use trust lines?
A) When sending currency, a trust line must be created from the receiving/destination account to the sending/issuer account.
B) When sending currency, a trust line must be created from the sending/issuer account to the receiving/destination account.
C) After initiating a transaction with currency between two accounts, both accounts must approve a mutual trust line for the currency transaction to go through.
D) All of the above.
Which hook in the nice-xrpl library creates a trust line?
const [trustlines, setTrustlines] = useState([]);
useCreateTrustline()
setTrustlines((trustlines)
useIsConnected()
To change the currency of a transaction in the example code sandbox, which file should be edited?
A) App.jsx
B) send-currency.jsx
C) wallet-info.jsx
D) source-wallet.jsx
上一題
提交