Documentation Index
Fetch the complete documentation index at: https://docs.chipipay.com/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
walletAddress | string | Yes | Wallet address to upgrade |
targetClassHash | string | No | Target class hash (defaults to latest CHIPI) |
bearerToken | string | No | JWT token. Falls back to apiSecretKey if not provided |
Return Value
Returns aPromise<PrepareWalletUpgradeResponse>:
| Field | Type | Description |
|---|---|---|
typedData | TypedData | SNIP-12 typed data to sign |
currentClassHash | string | Current class hash of the wallet |
targetClassHash | string | Target class hash for upgrade |
currentWalletType | WalletType | Current wallet type |
targetWalletType | WalletType | Target wallet type after upgrade |
