Function has_transaction_set_tag

pub fn has_transaction_set_tag(
    tx_bytes: Vec<u8>,
) -> Result<TransactionSetsState, JsError>
Expand description

Returns the state of the transaction sets. If all sets have a tag, it returns AllSetsHaveTag. If all sets have no tag, it returns AllSetsHaveNoTag. If there is a mix of tagged and untagged sets, it returns MixedSets. This function is useful for checking if a transaction might be signed by a hardware wallet. And for checking which parameter should be used in a hardware wallet api. WARNING this function will be deleted after all tags for set types will be mandatory. Approx after next hf