PostConditionType

Enum representing the type of a post-condition (STX, fungible token, or non-fungible token). Used internally for serialization.


Usage

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

// Check post-condition type
if (pc.type === 'stx-postcondition') {
  // PostConditionType.STX
}

Reference Linkarrow-up-right


Definition

enum PostConditionType {
  STX = 0x00,
  Fungible = 0x01,
  NonFungible = 0x02,
}

Values

Value
Number
Description

STX

0x00

STX token post-condition

Fungible

0x01

Fungible token (SIP-010) post-condition

NonFungible

0x02

Non-fungible token (SIP-009) post-condition

Last updated

Was this helpful?