Skip to content

Commit

Permalink
Merge pull request #169 from VWBL/fix/xrpl-readme
Browse files Browse the repository at this point in the history
fix: xrpl readme
  • Loading branch information
thashimoto1998 authored Sep 10, 2024
2 parents 1888395 + 67a626a commit cc5613c
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions packages/xrpl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ IPFSConfig(\*2)

![SDK Flow](src/public/sdk-flow.png)

### get user's signature before minting VWBL NFT
### Generate NFT mint tx object to get user's signature

```typescript
await vwblXrpl.generateMintTokenTx(
Expand Down Expand Up @@ -129,5 +129,23 @@ await vwbl.managedCreateToken(
### view contents ( get NFT metadata from given tokenId)
```typescript
const token = await vwbl.getTokenById(tokenId);
// generate tx object to get user's signature
const emptyTxObject = await vwblXrpl.generateTxForSigning(walletAddress);

// decrypt & fetch metadata
const {
id,
name,
description,
image,
mimeType,
encryptLogic,
ownDataBase64,
ownFiles,
fileName,
} = vwblXrpl.extractMetadata(
tokenId,
signedEmptyTx,
signerPublicKey
)
```

0 comments on commit cc5613c

Please sign in to comment.