ReferenceAPI ReferenceAmp
Get Asset Details Amp
Get Asset Details Amp.
Request
interface AmpGetAssetDetailsRequest {
action: 'get'
resource: string
}Prop
Type
Response
interface AmpGetAssetDetailsResponse_success {
status: 'success'
error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
message?: string | undefined
details: {
asset_id: string
issuer: string
name: string
contract: {
name: string
ticker: string
entity: {
domain: string
}
precision: number
version: number
issuer_pubkey: string
}
notes: unknown | undefined
locked: boolean
reissuance_token_id: string | undefined
reissuance_token_locked: boolean
}
metadata: unknown
}Prop
Type
Example
import { AmpActionsSchema } from '@blockstream/amp-js-sdk'
import { broadcastRequest } from './broadcaster'
const response = await broadcastRequest<
typeof AmpActionsSchema.shape.getAssetDetails
>(
{
action: 'get',
resource: '/amp/assets/{assetId}',
},
blockstream,
)