@btc-stamps/tx-builder - v0.1.7
    Preparing search index...

    Class AssetValidationService

    Bitcoin Stamp Asset Validation Service

    Handles:

    • Asset name format validation (A-prefixed numeric and alphabetic names)
    • Asset availability checking via Counterparty API
    • Available asset name generation with collision avoidance
    • CPID format validation for Bitcoin Stamps
    Index

    Constructors

    Methods

    • Check if an asset is available for registration

      Parameters

      • assetName: string

        Asset name to check

      Returns Promise<boolean>

      Promise True if asset is available

    • Generate an available asset name

      Returns Promise<string>

      Promise Available A-prefixed numeric asset name

      Error if no available asset can be generated within maxIterations

    • Validate and prepare an asset name for use

      Parameters

      • OptionalassetName: string

        Optional asset name to validate, generates one if not provided

      Returns Promise<string>

      Promise Valid, available asset name

      Error if validation fails or no available asset can be generated