Blockstream Enterprise
ReferenceAPI ReferenceAmp

List Asset Txs Amp

List Asset Txs Amp.

Request

AmpListAssetTxsRequest
interface AmpListAssetTxsRequest {
  action: 'get'
  resource: string
  details: {
    height_from: number | undefined
    pagination: {
      limit: number | undefined
      offset: number | undefined
      sort_by: 'created_at' | undefined
      sort: 'asc' | 'desc' | undefined
    } | undefined
  }
}

Prop

Type

Response

AmpListAssetTxsResponse_success
interface AmpListAssetTxsResponse_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

AmpListAssetTxsResponse_failed | pending | unauthorized | rejected
interface AmpListAssetTxsResponse_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.listAssetTxs
>(
  {
    action: 'get',
    resource: '/amp/assets/{assetId}/txs',
    details: {
      // TODO: fill in required fields
    },
  },
  blockstream,
)

On this page