File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ IPFSConfig(\*2)
77
77
78
78
![ SDK Flow] ( src/public/sdk-flow.png )
79
79
80
- ### get user's signature before minting VWBL NFT
80
+ ### Generate NFT mint tx object to get user's signature
81
81
82
82
``` typescript
83
83
await vwblXrpl .generateMintTokenTx (
@@ -129,5 +129,23 @@ await vwbl.managedCreateToken(
129
129
### view contents ( get NFT metadata from given tokenId)
130
130
131
131
` ` ` typescript
132
- const token = await vwbl .getTokenById (tokenId );
132
+ // generate tx object to get user's signature
133
+ const emptyTxObject = await vwblXrpl .generateTxForSigning (walletAddress );
134
+
135
+ // decrypt & fetch metadata
136
+ const {
137
+ id ,
138
+ name ,
139
+ description ,
140
+ image ,
141
+ mimeType ,
142
+ encryptLogic ,
143
+ ownDataBase64 ,
144
+ ownFiles ,
145
+ fileName ,
146
+ } = vwblXrpl .extractMetadata (
147
+ tokenId ,
148
+ signedEmptyTx ,
149
+ signerPublicKey
150
+ )
133
151
` ` `
You can’t perform that action at this time.
0 commit comments