Smart Contracts

Module: credential_registry
back to overview
credential_registry
Methods: 20
Instances: 6
Initialization

Parameters
{
  "credential_type": {
    "credential_type": "<String>"
  },
  "issuer_account": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<AccountAddress>"
        ]
      }
    ]
  },
  "issuer_key": "<String of size 64 containing lowercase hex characters.>",
  "issuer_metadata": {
    "hash": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<String of size 64 containing lowercase hex characters.>"
          ]
        }
      ]
    },
    "url": "<String>"
  },
  "revocation_keys": [
    "<String of size 64 containing lowercase hex characters.>"
  ],
  "schema": {
    "schema_ref": {
      "hash": {
        "Enum": [
          {
            "None": []
          },
          {
            "Some": [
              "<String of size 64 containing lowercase hex characters.>"
            ]
          }
        ]
      },
      "url": "<String>"
    }
  }
}
Errors
None
Event
{
  "Enum": [
    {
      "Restore": {
        "holder_id": "<String of size 64 containing lowercase hex characters.>",
        "reason": {
          "Enum": [
            {
              "None": []
            },
            {
              "Some": [
                {
                  "reason": "<String>"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "RevocationKey": {
        "action": {
          "Enum": [
            {
              "Register": []
            },
            {
              "Remove": []
            }
          ]
        },
        "key": "<String of size 64 containing lowercase hex characters.>"
      }
    },
    {
      "Schema": {
        "credential_type": {
          "credential_type": "<String>"
        },
        "schema_ref": {
          "schema_ref": {
            "hash": {
              "Enum": [
                {
                  "None": []
                },
                {
                  "Some": [
                    "<String of size 64 containing lowercase hex characters.>"
                  ]
                }
              ]
            },
            "url": "<String>"
          }
        }
      }
    },
    {
      "CredentialMetadata": {
        "credential_id": "<String of size 64 containing lowercase hex characters.>",
        "metadata_url": {
          "hash": {
            "Enum": [
              {
                "None": []
              },
              {
                "Some": [
                  "<String of size 64 containing lowercase hex characters.>"
                ]
              }
            ]
          },
          "url": "<String>"
        }
      }
    },
    {
      "IssuerMetadata": {
        "hash": {
          "Enum": [
            {
              "None": []
            },
            {
              "Some": [
                "<String of size 64 containing lowercase hex characters.>"
              ]
            }
          ]
        },
        "url": "<String>"
      }
    },
    {
      "Revoke": {
        "holder_id": "<String of size 64 containing lowercase hex characters.>",
        "reason": {
          "Enum": [
            {
              "None": []
            },
            {
              "Some": [
                {
                  "reason": "<String>"
                }
              ]
            }
          ]
        },
        "revoker": {
          "Enum": [
            {
              "Issuer": []
            },
            {
              "Holder": []
            },
            {
              "Other": [
                "<String of size 64 containing lowercase hex characters.>"
              ]
            }
          ]
        }
      }
    },
    {
      "Register": {
        "credential_type": {
          "credential_type": "<String>"
        },
        "holder_id": "<String of size 64 containing lowercase hex characters.>",
        "metadata_url": {
          "hash": {
            "Enum": [
              {
                "None": []
              },
              {
                "Some": [
                  "<String of size 64 containing lowercase hex characters.>"
                ]
              }
            ]
          },
          "url": "<String>"
        },
        "schema_ref": {
          "schema_ref": {
            "hash": {
              "Enum": [
                {
                  "None": []
                },
                {
                  "Some": [
                    "<String of size 64 containing lowercase hex characters.>"
                  ]
                }
              ]
            },
            "url": "<String>"
          }
        }
      }
    }
  ]
}
Methods

Parameters
"<String of size 64 containing lowercase hex characters.>"
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
{
  "credential_info": {
    "holder_id": "<String of size 64 containing lowercase hex characters.>",
    "holder_revocable": "<Bool>",
    "metadata_url": {
      "hash": {
        "Enum": [
          {
            "None": []
          },
          {
            "Some": [
              "<String of size 64 containing lowercase hex characters.>"
            ]
          }
        ]
      },
      "url": "<String>"
    },
    "valid_from": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
    "valid_until": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
          ]
        }
      ]
    }
  },
  "revocation_nonce": "<UInt64>",
  "schema_ref": {
    "schema_ref": {
      "hash": {
        "Enum": [
          {
            "None": []
          },
          {
            "Some": [
              "<String of size 64 containing lowercase hex characters.>"
            ]
          }
        ]
      },
      "url": "<String>"
    }
  }
}

Parameters
"<String of size 64 containing lowercase hex characters.>"
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
{
  "Enum": [
    {
      "Active": []
    },
    {
      "Revoked": []
    },
    {
      "Expired": []
    },
    {
      "NotActivated": []
    }
  ]
}

Parameters
{
  "auxiliary_data": [
    "<UInt8>"
  ],
  "credential_info": {
    "holder_id": "<String of size 64 containing lowercase hex characters.>",
    "holder_revocable": "<Bool>",
    "metadata_url": {
      "hash": {
        "Enum": [
          {
            "None": []
          },
          {
            "Some": [
              "<String of size 64 containing lowercase hex characters.>"
            ]
          }
        ]
      },
      "url": "<String>"
    },
    "valid_from": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
    "valid_until": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
          ]
        }
      ]
    }
  }
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
{
  "credential_id": "<String of size 64 containing lowercase hex characters.>",
  "reason": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          {
            "reason": "<String>"
          }
        ]
      }
    ]
  },
  "signing_data": {
    "contract_address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "entry_point": "<String>",
    "nonce": "<UInt64>",
    "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
  }
}
Errors
None
Return
None

Parameters
{
  "data": {
    "credential_id": "<String of size 64 containing lowercase hex characters.>",
    "reason": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            {
              "reason": "<String>"
            }
          ]
        }
      ]
    },
    "signing_data": {
      "contract_address": {
        "index": "<UInt64>",
        "subindex": "<UInt64>"
      },
      "entry_point": "<String>",
      "nonce": "<UInt64>",
      "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
    }
  },
  "signature": "<String of size 128 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
{
  "auxiliary_data": [
    "<UInt8>"
  ],
  "credential_id": "<String of size 64 containing lowercase hex characters.>",
  "reason": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          {
            "reason": "<String>"
          }
        ]
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
{
  "data": {
    "credential_id": "<String of size 64 containing lowercase hex characters.>",
    "reason": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            {
              "reason": "<String>"
            }
          ]
        }
      ]
    },
    "revocation_key": "<String of size 64 containing lowercase hex characters.>",
    "signing_data": {
      "contract_address": {
        "index": "<UInt64>",
        "subindex": "<UInt64>"
      },
      "entry_point": "<String>",
      "nonce": "<UInt64>",
      "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
    }
  },
  "signature": "<String of size 128 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
{
  "auxiliary_data": [
    "<UInt8>"
  ],
  "keys": [
    "<String of size 64 containing lowercase hex characters.>"
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
{
  "auxiliary_data": [
    "<UInt8>"
  ],
  "keys": [
    "<String of size 64 containing lowercase hex characters.>"
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
[
  [
    "<String of size 64 containing lowercase hex characters.>",
    "<UInt64>"
  ]
]

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
{
  "credential_schema": {
    "schema_ref": {
      "hash": {
        "Enum": [
          {
            "None": []
          },
          {
            "Some": [
              "<String of size 64 containing lowercase hex characters.>"
            ]
          }
        ]
      },
      "url": "<String>"
    }
  },
  "credential_type": {
    "credential_type": "<String>"
  },
  "issuer_metadata": {
    "hash": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<String of size 64 containing lowercase hex characters.>"
          ]
        }
      ]
    },
    "url": "<String>"
  }
}

Parameters
{
  "hash": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<String of size 64 containing lowercase hex characters.>"
        ]
      }
    ]
  },
  "url": "<String>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
"<String of size 64 containing lowercase hex characters.>"

Parameters
{
  "schema_ref": {
    "hash": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            "<String of size 64 containing lowercase hex characters.>"
          ]
        }
      ]
    },
    "url": "<String>"
  }
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
[
  {
    "credential_id": "<String of size 64 containing lowercase hex characters.>",
    "metadata_url": {
      "hash": {
        "Enum": [
          {
            "None": []
          },
          {
            "Some": [
              "<String of size 64 containing lowercase hex characters.>"
            ]
          }
        ]
      },
      "url": "<String>"
    }
  }
]
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
{
  "credential_id": "<String of size 64 containing lowercase hex characters.>",
  "reason": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          {
            "reason": "<String>"
          }
        ]
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
[
  "<String>"
]
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]

Parameters
{
  "id": "<String>",
  "implementors": [
    {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    }
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
{
  "migrate": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          [
            "<String>",
            "<String with lowercase hex>"
          ]
        ]
      }
    ]
  },
  "module": "<String of size 64 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "CredentialNotFound": []
    },
    {
      "CredentialAlreadyExists": []
    },
    {
      "IncorrectStatusBeforeRevocation": []
    },
    {
      "IncorrectStatusBeforeRestoring": []
    },
    {
      "KeyAlreadyExists": []
    },
    {
      "KeyDoesNotExist": []
    },
    {
      "NotAuthorized": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntrypoint": []
    },
    {
      "ExpiredSignature": []
    },
    {
      "WrongSignature": []
    },
    {
      "SerializationError": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractInvocationError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    }
  ]
}
Return
None

Parameters
{
  "credential_id": "<String of size 64 containing lowercase hex characters.>",
  "reason": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          {
            "reason": "<String>"
          }
        ]
      }
    ]
  },
  "revocation_key": "<String of size 64 containing lowercase hex characters.>",
  "signing_data": {
    "contract_address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "entry_point": "<String>",
    "nonce": "<UInt64>",
    "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
  }
}
Errors
None
Return
None


Release: 2024.12
Support CCDExplorer.io Uptime Backend Status CCDExplorer is supported by AesirX - Decentralized Consent & Data Ownership