Blockstream Enterprise
ReferenceAPI ReferenceAmp

Asset Utxo Amp

Asset Utxo Amp.

Request

AmpAssetUtxoRequest
interface AmpAssetUtxoRequest {
  action: 'get'
  resource: string
}

Prop

Type

Response

AmpAssetUtxoResponse_success
interface AmpAssetUtxoResponse_success {
  status: 'success'
  error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
  message?: string | undefined
  details: {
    txid: string
    vout: number
    wid: string
    aid: string
    satoshi: number
    locked: boolean
  }
  metadata: unknown
}

Prop

Type

AmpAssetUtxoResponse_failed | pending | unauthorized | rejected
interface AmpAssetUtxoResponse_failed | pending | unauthorized | rejected {
  status: 'failed' | 'pending' | 'unauthorized' | 'rejected'
  error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
  message?: string | undefined
}

Prop

Type

Example

Example
import { AmpActionsSchema } from '@blockstream/amp-registry'
import { broadcastRequest } from './broadcaster'

const response = await broadcastRequest<
  typeof AmpActionsSchema.shape.assetUtxo
>(
  {
    action: 'get',
    resource: '/amp/assets/${assetId}/utxos/${outpoint}',
  },
  blockstream,
)

On this page