Import
import type { WalletType, UserIdentifierType, WalletScheme, CreateWalletRequest, ListWalletsRequest, RestWallet, UpdateWalletIdentifierRequest, MigrateShareRequest, GetWalletBalanceRequest, FaucetRequest } from "@getpara/rest-sdk";
Wallet creation and listing
interface CreateWalletRequest {
type: WalletType;
userIdentifier: string;
userIdentifierType: UserIdentifierType;
scheme?: WalletScheme;
cosmosPrefix?: string;
}
interface ListWalletsRequest {
userIdentifier?: string;
userIdentifierType?: UserIdentifierType;
type?: WalletType;
status?: 'creating' | 'ready';
address?: string;
limit?: number;
cursor?: string;
}
interface UpdateWalletIdentifierRequest {
userIdentifier: string;
userIdentifierType: UserIdentifierType;
}
Wallet responses
interface RestWallet {
id: string;
type: WalletType;
scheme: WalletScheme;
status: 'creating' | 'ready';
address?: string;
publicKey?: string;
userIdentifier?: string;
userIdentifierType?: UserIdentifierType;
createdAt: string;
}
interface RestPagination { cursor: string | null; hasMore: boolean; limit: number; }
interface RestListResponse<T> { data: T[]; pagination: RestPagination; }
Wallet migration, balances, and faucet
interface MigrateShareRequest { encryptedPayload: string; }
interface GetWalletBalanceRequest { chainId?: string | number; tokenAddress?: string; network?: 'SOLANA' | 'SOLANA_DEVNET'; }
interface WalletBalanceResponse { balance: string; symbol: string; rawBalance: string; }
interface EnclavePublicKeyResponse { publicKey: string; keyFingerprint: string; generatedAt: string; }
interface FaucetRequest { walletId: string; chain?: string; }
interface FaucetResponse { transactionHash: string; amount: string; chain: string; walletId: string; address: string; }