Hierarchy

  • StacksTransaction

Constructors

Properties

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

Methods

  • Append a public key to the spending-condition of the transaction

    Parameters

    • publicKey: PublicKey

      the public key to append

    Returns void

    Example

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

    const transaction = makeSTXTokenTransfer({ ... });
    transaction.appendPubkey('034f355bdcb7cc0af728..24c0e585c5e89ac788521e0');
  • 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