mirror of
https://github.com/FlipsideCrypto/web3.py.git
synced 2026-02-06 10:56:47 +00:00
27 lines
749 B
Python
27 lines
749 B
Python
from web3.utils.functional import (
|
|
apply_formatters_to_return,
|
|
)
|
|
from web3.formatters import (
|
|
transaction_pool_content_formatter,
|
|
transaction_pool_inspect_formatter,
|
|
)
|
|
|
|
|
|
class TxPool(object):
|
|
def __init__(self, web3):
|
|
self.web3 = web3
|
|
|
|
@property
|
|
@apply_formatters_to_return(transaction_pool_content_formatter)
|
|
def content(self):
|
|
return self.web3._requestManager.request_blocking("txpool_content", [])
|
|
|
|
@property
|
|
@apply_formatters_to_return(transaction_pool_inspect_formatter)
|
|
def inspect(self):
|
|
return self.web3._requestManager.request_blocking("txpool_inspect", [])
|
|
|
|
@property
|
|
def status(self):
|
|
return self.web3._requestManager.request_blocking("txpool_status", [])
|