Overview
The@prudra/wallet package wraps Prudra HTTP APIs for both the legacy Tempo custodial wallet (/wallets) and managed infrastructure (/wallet-infra/*). Initialise @prudra/core once with your API key; all helpers reuse that configuration.
Setup
Constants (@prudra/core)
Chain and Token provide autocomplete-friendly slugs and symbols shared with the server.
Legacy Tempo wallet API
| Function | Route |
|---|---|
getWallet, provisionWallet | /wallets/me, POST /wallets |
getBalance, getHistory | balance + history |
withdraw | withdrawal stub / future implementation |
Managed infrastructure
| Function | Purpose |
|---|---|
provisionManagedWallet | POST /wallet-infra/master-wallets |
listManagedWallets, getManagedMasterWallet | List/get masters |
deriveManagedChildAddress, listManagedChildAddresses | HD children |
getManagedWalletBalances, getManagedWalletTransactions | Balances + tx feed |
transferManagedTokens | POST /wallet-infra/transfer |
registerBankAccount, listBankAccounts, deleteBankAccount | Fiat metadata |
withdrawManagedFunds, listManagedWithdrawals, getManagedWithdrawal | Withdrawals |
Transfer helper
Managed sends intentionally use the nametransferManagedTokens to avoid clashing with Tempo withdraw helpers:

