• Convert a post condition to a hex string

    Parameters

    • postcondition: PostCondition

      The post condition object to convert

    Returns string

    The hex string representation of the post condition

    Example

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

    const hex = postConditionToHex({
    type: 'stx-postcondition',
    address: 'ST00000000000000000002Q6VF78',
    condition: 'eq',
    amount: '1000000000000000000',
    });

    See

    StxPostCondition, FungiblePostCondition, NonFungiblePostCondition

Generated using TypeDoc