This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mnn/changelog-redesign
- Loading branch information
Showing
3 changed files
with
92 additions
and
31 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
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,34 @@ | ||
import { createMetadata } from "@doc"; | ||
|
||
export const metadata = createMetadata({ | ||
title: "wallet.GetNonce | thirdweb Unity SDK", | ||
description: "Get the none of the currently connected wallet", | ||
}); | ||
|
||
# GetNonce | ||
|
||
Get the nonce of the currently connected wallet. Defauts to pending blockTag. | ||
|
||
## Usage | ||
|
||
Call this method to get the nonce of the currently connected wallet. | ||
|
||
```csharp | ||
var nonce = await sdk.Wallet.GetNonce(); | ||
``` | ||
|
||
## Configuration | ||
|
||
### blockTag (optional) | ||
|
||
The block tag to get the nonce for. Must be a `string`. | ||
|
||
If no block tag is provided, the default is `pending`. | ||
|
||
```csharp | ||
var nonce = await sdk.Wallet.GetNonce("latest"); | ||
``` | ||
|
||
## Return Value | ||
|
||
Returns the nonce as an `int`. |