This commit is contained in:
2026-07-24 18:28:45 +03:00
parent 249ae14a71
commit d634ef4644
5 changed files with 74 additions and 7 deletions

View File

@@ -119,6 +119,17 @@ export interface OrgBalancesResponse {
has_errors: boolean
}
export interface OrgMnemonicResponse {
mnemonic: string
}
export interface OrgSecretKey {
chain: string
address: string
derivation_path: string
private_key: string
}
export function getOrganizationWallets(): Promise<OrgWallet[]> {
return doB2bRequest('/v1/organizations/wallets', {}, true)
}
@@ -126,3 +137,11 @@ export function getOrganizationWallets(): Promise<OrgWallet[]> {
export function getOrganizationBalances(): Promise<OrgBalancesResponse> {
return doB2bRequest('/v1/organizations/wallets/balances', {}, true)
}
export function getOrganizationMnemonic(): Promise<OrgMnemonicResponse> {
return doB2bRequest('/v1/organizations/wallets/mnemonic', {}, true)
}
export function getOrganizationSecretKeys(): Promise<OrgSecretKey[]> {
return doB2bRequest('/v1/organizations/wallets/secret-keys', {}, true)
}