Hierarchy

  • StacksTransaction

Constructors

Properties

anchorMode: AnchorMode
chainId: ChainId
payload: PayloadWire
postConditionMode: PostConditionMode
postConditions: LengthPrefixedList

Methods

  • Parameters

    Returns void

  • Serialize a transaction to a hex string (byte representation)

    Returns string

    A hex string of the serialized transaction

    Example

    import { makeSTXTokenTransfer } from '@stacks/transactions';

    const transaction = makeSTXTokenTransfer({ ... });
    const hex = transaction.serialize();
  • Serialize a transaction to bytes

    Returns Uint8Array

    A Uint8Array of the serialized transaction

    Example

    import { makeSTXTokenTransfer } from '@stacks/transactions';

    const transaction = makeSTXTokenTransfer({ ... });
    const bytes = transaction.serializeBytes();
  • Set the total fee to be paid for this transaction

    Parameters

    Returns void

  • Set the transaction nonce

    Parameters

    Returns void

  • Parameters

    Returns void

  • Set the transaction sponsor nonce

    Parameters

    Returns void

  • Warning: method mutates the condition param

    Parameters

    Returns string

  • Returns string

    Deprecated

    Does NOT mutate transaction, but rather returns the hash of the transaction with a cleared initial authorization

  • Parameters

    Returns string

  • Parameters

    Returns string

  • Returns string

  • Returns string

    Deprecated

    Alias of .signBegin()

  • Returns string

Generated using TypeDoc