-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2811 from build-5/update-nft-purchase-how-tos
Update NFT purchase example
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: Track OTRs | ||
tags: | ||
- how-to | ||
- track | ||
--- | ||
|
||
Sometimes you want to track your OTR for example to check if a purchase was successful. | ||
You can do that by using the tag of the request. | ||
|
||
To do that call [`getTag`](../reference-api/classes/DatasetClassOtr.OtrRequest.md#gettag) on `OtrRequest`. | ||
[`getTag`](../reference-api/classes/DatasetClassOtr.OtrRequest.md#gettag) takes a firefly deeplink as parameter. | ||
|
||
```tsx file=../../../packages/sdk/examples/nft/otr/purchase.ts#L24 | ||
``` | ||
|
||
You can use the tag to get an observable object by calling [`trackByTag`](../reference-api/classes/ProjectWrapper#trackbytag) on `ProjectWrapper`. | ||
|
||
```tsx file=../../../packages/sdk/examples/nft/otr/purchase.ts#L25-L27 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters