Reference
Edit Asset Wallet Restrictions List Amp
Edit Asset Wallet Restrictions List Amp.
Request
interface AmpEditAssetWalletRestrictionsListRequest {
action: 'edit'
resource: string
details?: {
group_id: string | undefined
use_to_whitelist: boolean
to_whitelist: string[] | undefined
can_burn: boolean
wids: string[]
} | undefined
}Prop
Type
Response
interface AmpEditAssetWalletRestrictionsListResponse_success {
status: 'success'
error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
message?: string | undefined
details: {
group_type: 'multiple'
group_id: string
use_to_whitelist: boolean
to_whitelist: string[]
can_burn: boolean
wids: string[]
} | { group_type: 'single'; group_id: string; use_to_whitelist: boolean; to_whitelist: string[]; can_burn: boolean; wid: string }[]
metadata: unknown
}Prop
Type
Example
import { AmpActions } from '@blockstream/amp-registry'
const response = await broadcaster.processBroadcast<
typeof AmpActions.editAssetWalletRestrictionsList
>(
{
action: 'edit',
resource: '/amp/assets/{aid}/restrictions',
details: {
// TODO: fill in required fields
},
}
)