Reference
Wallet Lbtc Balance Amp
Wallet Lbtc Balance Amp.
Request
interface AmpWalletLbtcBalanceRequest {
action: 'get'
resource: string
}Prop
Type
Response
interface AmpWalletLbtcBalanceResponse_success {
status: 'success'
error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
message?: string | undefined
details: {
balances: unknown
}
metadata: unknown
}Prop
Type
Example
import { AmpActions } from '@blockstream/amp-registry'
const response = await broadcaster.processBroadcast<
typeof AmpActions.walletLbtcBalance
>(
{
action: 'get',
resource: '/amp/wallets/{walletId}/balance/lbtc',
}
)