Check that a transaction is not in the failed transactions list.
(rpc_url: str, sender_addr: str)
| 141 | |
| 142 | |
| 143 | def check_tx_not_failed(rpc_url: str, sender_addr: str) -> int: |
| 144 | """Check that a transaction is not in the failed transactions list.""" |
| 145 | req_json = json.dumps({"address": sender_addr, "perPage": 20}) |
| 146 | resp_body = post_raw_json(f"{rpc_url}/v1/query/failed-txs", req_json) |
| 147 | result = json.loads(resp_body) |
| 148 | return result.get('totalCount', 0) |
| 149 | |
| 150 | |
| 151 | def sign_bls(private_key_hex: str, message: bytes) -> bytes: |
no test coverage detected