Update wallet PIN
How to update the pin of a wallet.
Request Endpoint: reference
PATCH /api/wallets/{id}/security
Parameter | Param Type | Value | Description |
---|---|---|---|
Signing-Method | Header | id:value | id : This is the ID of the signing methodvalue : This is the value of the signing method |
Parameter | Param Type | Description | Data Type | Mandatory |
---|---|---|---|---|
id | Path | This ID of the wallet | String | ✅ |
newPincode | Body | New PIN for the wallet | String | ✅ |
pincode (Deprecated) | Body | Current PIN of the wallet | String | ❌ |
Example Request:
PATCH https://api-wallet.venly.io/api/wallets/944124ed-305d-4e56-a0fd-bce1c7f1537c/security
{
"newPincode" : "1234"
}
Response Body:
{
"success": true,
"result": {
"id": "944124ed-305d-4e56-a0fd-bce1c7f1537c",
"address": "0x5f6EadB01E6E130634850cDC9071862eD2607775",
"walletType": "API_WALLET",
"secretType": "ETHEREUM",
"createdAt": "2021-01-22T19:22:29.252188",
"archived": false,
"alias": "graceful_panda",
"description": "My first unrecoverable wallet",
"primary": false,
"hasCustomPin": true,
"identifier": "type=unrecoverable",
"balance": {
"available": true,
"secretType": "ETHEREUM",
"balance": 0.0,
"gasBalance": 0.0,
"symbol": "ETH",
"gasSymbol": "ETH",
"rawBalance": "0",
"rawGasBalance": "0",
"decimals": 18
}
}
}
Updated 3 days ago