Skip to content

Commit 781d793

Browse files
author
Sober
committed
get tx from node pool
1 parent 91339fa commit 781d793

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

starcoin/sdk/client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ def get_transaction_info(self, txn_hash: str) -> dict:
9292
}
9393
ret = self.execute(operation)
9494
return ret
95+
96+
def get_txpool_pending_txn(self, txn_hash:str) -> dict:
97+
operation = {
98+
"rpc_method": "txpool.pending_txn",
99+
"params": [txn_hash],
100+
}
101+
ret = self.execute(operation)
102+
return ret
95103

96104
def get_block_by_number(self, number: int) -> dict:
97105
operation = {

0 commit comments

Comments
 (0)