Blockstream Enterprise
ReferenceAPI ReferenceAssets

Edit Asset Wallet Restrictions Assets

Edit Asset Wallet Restrictions Assets.

Request

AssetsEditAssetWalletRestrictionsRequest
interface AssetsEditAssetWalletRestrictionsRequest {
  action: 'edit'
  resource: string
  details?: {
    whitelist: string[]
    can_burn: boolean
    wid: string | undefined
  } | undefined
}

Prop

Type

Response

AssetsEditAssetWalletRestrictionsResponse_success
interface AssetsEditAssetWalletRestrictionsResponse_success {
  status: 'success'
  error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
  message?: string | undefined
  details: {}
  metadata: unknown
}

Prop

Type

AssetsEditAssetWalletRestrictionsResponse_failed | pending | unauthorized | rejected
interface AssetsEditAssetWalletRestrictionsResponse_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.editAssetWalletRestrictions
>(
  {
    action: 'edit',
    resource: '/assets/{aid}/wallets/{wid}/restrictions',
    details: {
      // TODO: fill in required fields
    },
  },
  blockstream,
)

On this page