Skip to content

CardanoKey

Walter Lara edited this page Jul 12, 2023 · 1 revision

Post Cardano Cli Key and Save to DB

Allows adding a Cardano Cli Key pair and saves it encrypted into the database.

Request

URL: /v1/cardano/key

Method: POST

Path Parameters: None

Query Parameters: None

Headers:

Authorization: Bearer {accessToken}

Content-Type: application/json

Content:

Field Type Description Requirement Type
name string Key's name. Required
vkey CliKey Verification key Required
skey CliKey Signing key Optional

Content example:

{
    "name": "My Cli Key",
    "vkey": 
    {
      "type": "PaymentVerificationKeyShelley_ed25519",
      "description": "Payment Verification Key",
      "cborHex": "5820a1836d8838a845846c016a085061ff640704399b9f4caa3df3d502c63c2bca13"
    },
    "skey":
    {
      "type": "PaymentSigningKeyShelley_ed25519",
      "description": "Payment Signing Key",
      "cborHex": "58203568ea1a7dbe642e839ccd6b606dbcd9047cedbf8c7ae0dd4706e3e40e10b8c7"
    }
}

✅ Success Response

Code: 201 Accepted

Headers:

Content-Type: application/json

Content: None

❌ Error Responses

1. Unauthorized

Code: 401 UNAUTHORIZED

Condition: If {accessToken} is invalid or expired.

Clone this wiki locally