ReferenceAPI ReferenceAmp
Asset Utxo Amp
Asset Utxo Amp.
Request
interface AmpAssetUtxoRequest {
action: 'get'
resource: string
}Prop
Type
Response
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
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,
)