github.com/lmittmann/w3@v0.20.0/docs/pages/rpc-methods/txpool.mdx (about) 1 # `txpool`-Namespace 2 3 List of supported RPC methods for `w3.Client` in the `txpool`-namespace. 4 5 ## `txpool_content` 6 `Content` requests the pending and queued transactions in the transaction pool. 7 ```go {3} 8 var content *txpool.ContentResponse 9 client.Call( 10 txpool.Content().Returns(&content), 11 ) 12 ``` 13 14 ## `txpool_contentFrom` 15 `ContentFrom` requests the pending and queued transactions in the transaction pool from the given address. 16 ```go {3} 17 var contentFrom *txpool.ContentFromResponse 18 client.Call( 19 txpool.ContentFrom(addr).Returns(&contentFrom), 20 ) 21 ``` 22 23 24 ## `txpool_status` 25 `Status` requests the number of pending and queued transactions in the transaction pool. 26 ```go {3} 27 var status *txpool.StatusResponse 28 client.Call( 29 txpool.Status().Returns(&status), 30 ) 31 ```