Skip to content

Commit

Permalink
Add RPC doc for gw_get_pending_tx_hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
blckngm committed Jul 29, 2022
1 parent 60a7d24 commit 5c16703
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/RPC.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* [Method `gw_get_fee_config`](#method-gw_get_fee_config)
* [Method `gw_get_mem_pool_state_root`](#method-gw_get_mem_pool_state_root)
* [Method `gw_get_mem_pool_state_ready`](#method-gw_get_mem_pool_state_ready)
* [Method `gw_get_pending_tx_hashes`](#method-gw_get_pending_tx_hashes)
* [Method `gw_get_node_info`](#method-gw_get_node_info)
* [Method `gw_reload_config`](#method-gw_reload_config)
* [Method `gw_submit_l2transaction`](#method-gw_submit_l2transaction)
Expand Down Expand Up @@ -1309,7 +1310,39 @@ Response
}
```

### Method `gw_get_pending_tx_hashes`
* params: None
* result: [`H256[]`](#type-h256)

Get pending transaction hashes.

#### Examples

Request

```json
{
"id": 42,
"jsonrpc": "2.0",
"method": "gw_get_pending_tx_hashes",
"params": []
}
```

Response:

```json
{
"id": 42,
"jsonrpc": "2.0",
"result": [
"0x37c705fbbe2660b6cec619fbfc7847752e0111044742a78e1b394f8da285baa3",
"0x4126f01bfaf17ffcbb1745c6e33830e66e2490e884c9f9c2d1e14bdbc99545de",
"0x7dcd3ddd4fbe1b6ee0129b3a9a4874dd909490da9952f0e17d2ee8d88ec49a2a",
"0xb0d96d3d73738f0dd4a66a03fb48fe11ea4d2195d8cb138885bb3a90fd29c7be"
],
}
```

## RPC Types

Expand Down

0 comments on commit 5c16703

Please sign in to comment.