Blockstream Enterprise Custody SDK
Reference

Blacklisted Wallets

Blacklisted Wallets Amp.

Request

AmpListWalletBlacklistRequest
interface AmpListWalletBlacklistRequest {
  action: 'get'
  resource: string
  details?: {
    offset?: number
    limit?: number
    filters?: {
      asset_ids?: string[]
    }
  } | undefined
}

Prop

Type

Response

AmpListWalletBlacklistResponse_success
interface AmpListWalletBlacklistResponse_success {
  status: 'success'
  error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
  message?: string | undefined
  details: {
    asset_ids: string[]
  }[]
  metadata: {
    total_count: number
  }
}

Prop

Type

AmpListWalletBlacklistResponse_failed | pending | unauthorized | rejected
interface AmpListWalletBlacklistResponse_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 { AmpActions } from '@blockstream/amp-registry'

const response = await broadcaster.processBroadcast<
  typeof AmpActions.listWalletBlacklist
>(
  {
    action: 'get',
    resource: '/amp/assets/wallet/{wid}/blacklist',
  }
)

On this page