Blockstream Enterprise
ReferenceAPI ReferenceAssets

Edit Asset Wallet Restrictions List Assets

Edit Asset Wallet Restrictions List Assets.

Request

AssetsEditAssetWalletRestrictionsListRequest
interface AssetsEditAssetWalletRestrictionsListRequest {
  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

AssetsEditAssetWalletRestrictionsListResponse_success
interface AssetsEditAssetWalletRestrictionsListResponse_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

AssetsEditAssetWalletRestrictionsListResponse_failed | pending | unauthorized | rejected
interface AssetsEditAssetWalletRestrictionsListResponse_failed | pending | unauthorized | rejected {
  status: 'failed' | 'pending' | 'unauthorized' | 'rejected'
  error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
  message?: string | undefined
}

Prop

Type

Example

Example
import { resourceSchema } from '@blockstream/ecs-js-sdk'
import { broadcastRequest } from './broadcaster'

const response = await broadcastRequest<
  typeof resourceSchema.shape.assets.shape.editAssetWalletRestrictionsList
>(
  {
    action: 'edit',
    resource: '/assets/{aid}/restrictions',
    details: {
      // TODO: fill in required fields
    },
  },
  blockstream,
)

On this page