Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Method to check to see if a transaction can be reattached to the Tangle #38

@todofixthis

Description

@todofixthis

From https://github.com/iotaledger/iota.lib.js#isreattachable (with a few modifications):

isReattachable

This API function helps you to determine whether you should replay a transaction or make a completely new transaction with a different seed. What this function does, is it takes one or more input addresses (i.e. from spent transactions) as input and then checks whether any transactions with a value transferred are confirmed. If yes, it means that this input address has already been successfully used in a different transaction and as such you should no longer replay the transaction.

Input

api = Iota(...)
ir_result = api.is_reattachable(addresses)
  • addresses: Iterable[Address] input addresses from the transaction(s).

Returns

{'reattachable': List[bool]} — similar to getBalances, the result contains a list of booleans corresponding to the addresses that were provided in the request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions