13. Token Lifecycle – list (계속)
13
• Unspent 토큰에 대해 질의
- 권한: 토큰 소유자 MSP
• 질의 결과 값
- TokenID: 트랜잭션 ID, 인덱스
- Type: 토큰 이름. 예> FabCoin, HLKUGCoin,…
- Quantity
14. Token Lifecycle - list
14
• SDK (node.js)
const user1Tokenclient = client1.newTokenClient(mychannel);
const mytokens = await user1TokenClient.list();
for (const token of tokens) {
// get token.id, token.type, and token.quantity
// token.id will be used for transfer and redeem
}
20. BYFN(Building Your First Network)
20
Peer Peer
Peer PeerOrderer
Org1
Org2peer0.org1.example.com
peer1.org1.example.com
peer0.org2.example.comorderer.example.com
fabric_byfn
peer1.org2.example.com
21. Future features
21
• non-fungible tokens
- Non fungible tokens cannot be merged or divided.
• chaincode interoperability
- allows tokens to be issued, transferred, and redeemed by chaincode