Blockstream Enterprise
ReferenceAPI ReferenceWallets

Delete Wallets

Delete Wallets.

Request

WalletsDeleteRequest
interface WalletsDeleteRequest {
  action: 'delete'
  resource: string
  details?: {} | undefined
}

Prop

Type

Response

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

Prop

Type

WalletsDeleteResponse_pending
interface WalletsDeleteResponse_pending {
  status: 'pending'
  error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
  message?: string | undefined
  details: {
    proposal_id: string
  }
}

Prop

Type

WalletsDeleteResponse_failed | unauthorized | rejected
interface WalletsDeleteResponse_failed | unauthorized | rejected {
  status: 'failed' | '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.wallets.shape.delete
>(
  {
    action: 'delete',
    resource: '/wallets/{id}',
    details: {
      // TODO: fill in required fields
    },
  },
  blockstream,
)

On this page