curl --request POST \
  --url https://testnet.walletkit.com/wallets/change-user-pin \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "network": "Polygon",
  "address": "0x976Cf57B7EE1D84E73BE9115457889d49a8A1335",
  "old_user_pin": "123456",
  "new_user_pin": "654321"
}'
{
  "success": true
}

Headers

X-WalletKit-Project-ID
string
required

Your WalletKit Project ID can be found on the API Keys page in the WalletKit Dashboard.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
network
enum<string>
required
Available options:
Ethereum,
Polygon,
Base,
Avalanche,
Polkadot,
Vara
address
string
required
Example:

"0x976Cf57B7EE1D84E73BE9115457889d49a8A1335"

old_user_pin
string | null
required

A 6-digit numeric pin that is only known to the user, set during wallet creation. This pin is required to sign transactions from this wallet.

new_user_pin
string | null
required

A 6-digit numeric pin that is only known to the user, set during wallet creation. This pin is required to sign transactions from this wallet.

Response

200
application/json
success
boolean
required
Example:

true