|
Algorithm 5 Transfer a NFT |
-
1:
functionTransferNFT(id string)
-
2:
▹ Calling Algorithm 2
-
3:
-
4:
if invokerclient != token.Owner then
-
5:
return “The client is not authorized to transfer token owned by ”
-
6:
end if
-
7:
if then
-
8:
return “No bid yet”
-
9:
end if
-
10:
▹ Calling Algorithm 3, to create new token with buyer’s id
-
11:
▹ Delete the token with seller’s id
-
12:
end function
|