v1/keys

Request to add a new public Key

Changed on
post/v1/keys/publicKeyAgreements

Request

  • The document declares no server URL.
  • Auth: none declared

Request body

accountIdstring required

AccountId in hex or SS58 format

proofstring required

proof is the signature for the payload

Example request

{
  "accountId": "1LSLqpLWXo7A7xuiRdu6AQPnBPNJHoQSu8DBsUYJgsNEJ4N",
  "payload": {
    "actions": [
      {
        "type": "ADD_ITEM",
        "encodedPayload": "0x1122"
      }
    ],
    "schemaId": 1,
    "targetHash": 1234,
    "expiration": 1
  },
  "proof": "0x065d733ca151c9e65b78f2ba77348224d31647e6913c44ad2765c6e8ba06f834dc21d8182447d01c30f84a41d90a8f2e58001d825c6f0d61b0afe89f984eec85"
}

Response

Add new key request enqueued

statestring

Job state

referenceIdstring required

Example response

{
  "state": "waiting"
}

Changes

    • ○

      api operation id KeysControllerV1_AddNewPublicKeyAgreements_v1 removed and replaced with KeysControllerV1_addNewPublicKeyAgreements_v1

    • ▲

      added to the /// request property allOf list

    • ▲

      removed the enum value ADD_ITEM of the request property ///

    • ▲

      removed the enum value DELETE_ITEM of the request property ///

    • ▲

      the / request property's minItems was increased to 1

    • ▲

      the /// request property type changed from string to no type

    • ○

      api operation id KeysControllerV1_AddNewPublicKeyAgreements removed and replaced with KeysControllerV1_AddNewPublicKeyAgreements_v1