Blockstream Enterprise
ReferenceAPI ReferenceAmp

List Asset Unconfirmed Txs Amp

List Asset Unconfirmed Txs Amp.

Request

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

Prop

Type

Response

AmpListAssetUnconfirmedTxsResponse_success
interface AmpListAssetUnconfirmedTxsResponse_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
    inputs: {
      wallet_id: string | undefined
      asset_id: string
      satoshi: number
    } []
    outputs: {
      wallet_id: string | undefined
      asset_id: string
      satoshi: number
    } []
    height: number | undefined
    unblinded_url: string | undefined
  } []
  metadata: {
    total_count: number
  }
}

Prop

Type

AmpListAssetUnconfirmedTxsResponse_failed | pending | unauthorized | rejected
interface AmpListAssetUnconfirmedTxsResponse_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.listAssetUnconfirmedTxs
>(
  {
    action: 'get',
    resource: '/amp/assets/${assetId}/txs/unconfirmed',
  },
  blockstream,
)

On this page