Blockstream Enterprise Custody SDK
Reference

List Wallets Amp

List Wallets Amp.

Request

AmpListWalletsRequest
interface AmpListWalletsRequest {
  action: 'get'
  resource: '/amp/wallets'
}

Prop

Type

Response

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

Prop

Type

AmpListWalletsResponse_failed | pending | unauthorized | rejected
interface AmpListWalletsResponse_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.listWallets
>(
  {
    action: 'get',
    resource: '/amp/wallets',
  }
)

On this page