ReferenceAPI ReferenceAmp
Get Asset Wallet Restrictions Amp
Get Asset Wallet Restrictions Amp.
Request
interface AmpGetAssetWalletRestrictionsRequest {
action: 'get'
resource: string
}Prop
Type
Response
interface AmpGetAssetWalletRestrictionsResponse_success {
status: 'success'
error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
message?: string | undefined
details: {
whitelist: string[]
can_burn: boolean
wid: string | undefined
}
metadata: unknown
}Prop
Type
Example
import { AmpActionsSchema } from '@blockstream/amp-js-sdk'
import { broadcastRequest } from './broadcaster'
const response = await broadcastRequest<
typeof AmpActionsSchema.shape.getAssetWalletRestrictions
>(
{
action: 'get',
resource: '/amp/assets/{aid}/wallets/{wid}/restrictions',
},
blockstream,
)