PostConditionType
Last updated
Was this helpful?
Enum representing the type of a post-condition (STX, fungible token, or non-fungible token). Used internally for serialization.
import { PostConditionType } from '@stacks/transactions';
// Check post-condition type
if (pc.type === 'stx-postcondition') {
// PostConditionType.STX
}enum PostConditionType {
STX = 0x00,
Fungible = 0x01,
NonFungible = 0x02,
}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?
Was this helpful?