Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: getTransactionCount #2862

Merged
merged 9 commits into from
Oct 14, 2024
8 changes: 2 additions & 6 deletions site/pages/docs/actions/public/getTransactionCount.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const transactionCount = await publicClient.getTransactionCount({
})
```

### blockNumber
### blockNumber (optional)

- **Type:** `bigint`

Expand All @@ -62,7 +62,7 @@ const transactionCount = await publicClient.getTransactionCount({
})
```

### blockTag
### blockTag (optional)

- **Type:** `'latest' | 'earliest' | 'pending' | 'safe' | 'finalized'`

Expand All @@ -81,10 +81,6 @@ const transactionCount = await publicClient.getTransactionCount({

- The transaction count of an account can also be used as a nonce.

## Example

<iframe frameBorder="0" width="100%" height="500px" src="https://replit.com/@jxom/getBlockNumber?embed=true"></iframe>

## JSON-RPC Method

[`eth_getTransactionCount`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactioncount)
Loading