[docs] Indicate which methods return None when hash isn't found

pull/3/head
Janet Liang 5 years ago
parent f46fe4a450
commit 525b513652
  1. 1
      pyhmy/rpc/blockchain.py
  2. 4
      pyhmy/rpc/transaction.py

@ -354,6 +354,7 @@ def get_block_by_hash(block_hash, endpoint=_default_endpoint, include_full_tx=Fa
------- -------
dict dict
# TODO: Add link to reference RPC documentation # TODO: Add link to reference RPC documentation
None if block hash is not found
""" """
params = [ params = [
block_hash, block_hash,

@ -49,6 +49,7 @@ def get_transaction_by_hash(tx_hash, endpoint=_default_endpoint, timeout=_defaul
------- -------
dict dict
# TODO: Add link to reference RPC documentation # TODO: Add link to reference RPC documentation
None if transaction hash not found
""" """
params = [ params = [
tx_hash tx_hash
@ -131,6 +132,7 @@ def get_transaction_receipt(tx_receipt, endpoint=_default_endpoint, timeout=_def
------- -------
dict dict
# TODO: Add link to reference RPC documentation # TODO: Add link to reference RPC documentation
None if transcation receipt hash not found
""" """
params = [ params = [
tx_receipt tx_receipt
@ -220,6 +222,7 @@ def get_cx_receipt_by_hash(cx_hash, endpoint = _default_endpoint, timeout = _def
------- -------
dict dict
# TODO: Add link to reference RPC documentation # TODO: Add link to reference RPC documentation
None if cx receipt hash not found
""" """
params = [ params = [
cx_hash cx_hash
@ -271,6 +274,7 @@ def get_staking_transaction_by_hash(tx_hash, endpoint=_default_endpoint, timeout
------- -------
dict dict
# TODO: Add link to reference RPC documentation # TODO: Add link to reference RPC documentation
None if staking transaction hash not found
""" """
params = [ params = [
tx_hash tx_hash

Loading…
Cancel
Save