|
|
@ -125,7 +125,7 @@ def get_balance_by_block(address, block_num, endpoint=_default_endpoint, timeout |
|
|
|
except TypeError as e: |
|
|
|
except TypeError as e: |
|
|
|
raise InvalidRPCReplyError(method, endpoint) from e |
|
|
|
raise InvalidRPCReplyError(method, endpoint) from e |
|
|
|
|
|
|
|
|
|
|
|
def get_account_nonce(address, block_num, endpoint=_default_endpoint, timeout=_default_timeout) -> int: |
|
|
|
def get_account_nonce(address, block_num='latest', endpoint=_default_endpoint, timeout=_default_timeout) -> int: |
|
|
|
""" |
|
|
|
""" |
|
|
|
Get the account nonce |
|
|
|
Get the account nonce |
|
|
|
|
|
|
|
|
|
|
@ -165,6 +165,12 @@ def get_account_nonce(address, block_num, endpoint=_default_endpoint, timeout=_d |
|
|
|
except TypeError as e: |
|
|
|
except TypeError as e: |
|
|
|
raise InvalidRPCReplyError(method, endpoint) from e |
|
|
|
raise InvalidRPCReplyError(method, endpoint) from e |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_nonce(address, block_num='latest', endpoint=_default_endpoint, timeout=_default_timeout) -> int: |
|
|
|
|
|
|
|
""" |
|
|
|
|
|
|
|
See get_account_nonce |
|
|
|
|
|
|
|
""" |
|
|
|
|
|
|
|
return get_account_nonce(address, block_num, endpoint, timeout) |
|
|
|
|
|
|
|
|
|
|
|
def get_transaction_count(address, block_num, endpoint=_default_endpoint, timeout=_default_timeout) -> int: |
|
|
|
def get_transaction_count(address, block_num, endpoint=_default_endpoint, timeout=_default_timeout) -> int: |
|
|
|
""" |
|
|
|
""" |
|
|
|
Get the number of transactions the given address has sent for the given block number |
|
|
|
Get the number of transactions the given address has sent for the given block number |
|
|
|