Skip to content

Commit

Permalink
docs: getTransactionCount (#2862)
Browse files Browse the repository at this point in the history
* fix: tests

* docs: remove broken example

---------

Co-authored-by: moxey.eth <jakemoxey@gmail.com>
  • Loading branch information
marthendalnunes and jxom authored Oct 14, 2024
1 parent 73f6f9c commit 5fd7ed9
Showing 1 changed file with 2 additions and 6 deletions.
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)

0 comments on commit 5fd7ed9

Please sign in to comment.