idena.apis.blockchain

Module Contents

Functions

check_sync()

get_address_pending_transactions(address)

get_address_transactions(address, count = 5, token = None)

get_block_by_hash(hash)

get_block_by_height(height)

get_burnt_coins()

get_fee_rate()

get_last_block()

get_mempool()

get_raw_tx(nonce = None, epoch = None, from_ = None, to = None, amount = None, maxFee = None, payload = None, tips = None, useProto = None, type = types.TxType.SendTx)

get_transaction(hash)

get_transaction_receipt(hash)

send_raw_tx(tx)

idena.apis.blockchain.check_sync()
Return type

idena.types.Sync

idena.apis.blockchain.get_address_pending_transactions(address)
Parameters

address (str) –

Return type

idena.types.AddressTransactions

idena.apis.blockchain.get_address_transactions(address, count=5, token=None)
Parameters
  • address (str) –

  • count (int) –

  • token (str) –

Return type

idena.types.AddressTransactions

idena.apis.blockchain.get_block_by_hash(hash)
Parameters

hash (str) –

Return type

idena.types.Block

idena.apis.blockchain.get_block_by_height(height)
Parameters

height (int) –

Return type

idena.types.Block

idena.apis.blockchain.get_burnt_coins()
Return type

Optional[idena.types.BurntCoins]

idena.apis.blockchain.get_fee_rate()
Return type

decimal.Decimal

idena.apis.blockchain.get_last_block()
Return type

idena.types.Block

idena.apis.blockchain.get_mempool()
Return type

Optional[str]

idena.apis.blockchain.get_raw_tx(nonce=None, epoch=None, from_=None, to=None, amount=None, maxFee=None, payload=None, tips=None, useProto=None, type=types.TxType.SendTx)
Parameters
  • nonce (int) –

  • epoch (int) –

  • from_ (str) –

  • to (str) –

  • amount (decimal.Decimal) –

  • maxFee (decimal.Decimal) –

  • payload (str) –

  • tips (decimal.Decimal) –

  • useProto (bool) –

  • type (idena.types.TxType) –

Return type

str

idena.apis.blockchain.get_transaction(hash)
Parameters

hash (str) –

Return type

idena.types.Transaction

idena.apis.blockchain.get_transaction_receipt(hash)
Parameters

hash (str) –

Return type

Optional[idena.types.TxReceipt]

idena.apis.blockchain.send_raw_tx(tx)
Parameters

tx (str) –

Return type

str