Reference
Blacklisted Assets
Blacklisted Assets Amp.
Request
interface AmpListAssetBlacklistRequest {
action: 'get'
resource: string
details?: {
offset?: number
limit?: number
filters?: {
wallet_ids?: string[]
}
} | undefined
}Prop
Type
Response
interface AmpListAssetBlacklistResponse_success {
status: 'success'
error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
message?: string | undefined
details: {
wallet_ids: string[]
}[]
metadata: {
total_count: number
}
}Prop
Type
Example
import { AmpActions } from '@blockstream/amp-registry'
const response = await broadcaster.processBroadcast<
typeof AmpActions.listAssetBlacklist
>(
{
action: 'get',
resource: '/amp/assets/{aid}/blacklist',
}
)