Skip to main content
GET
/
platform
/
admin
/
audit_registry
/
{smartContractImplementationBlockchainsDeployId}
Get audit registry record
curl --request GET \
  --url https://api.example.com/platform/admin/audit_registry/{smartContractImplementationBlockchainsDeployId}
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Description

Fetches the complete audit registry record for a deployed smart contract implementation. This includes audit URL, verification status, and associated metadata stored on-chain.

Input

  • smartContractImplementationBlockchainsDeployId (long, required) — The unique identifier of the smart contract deployment whose audit record should be retrieved.

Output

Returns an AuditRegistryRecordInfoDto object containing:
  • deploymentId (long) — The smart contract deployment identifier.
  • auditUrl (string) — URL to the security audit report document.
  • contractAddress (string) — Blockchain address of the deployed contract.
  • blockchainName (string) — Name of the blockchain network.
  • registrationDate (datetime) — When the audit record was registered on-chain.

Examples

Request
GET /api/platform/audit-registry/42/record
Response (200 OK)
{
  "deploymentId": 42,
  "auditUrl": "https://audits.example.com/contract-42-report.pdf",
  "contractAddress": "0x1234567890abcdef1234567890abcdef12345678",
  "blockchainName": "Ethereum Mainnet",
  "registrationDate": "2024-01-15T10:30:00Z"
}

Errors

  • 401 Unauthorized: Caller is not authenticated.
  • 403 Forbidden: Caller lacks platform administration permissions.
  • 404 Not Found: No audit registry record exists for the specified deployment ID.
  • 500 Internal Server Error: Unexpected error occurred during retrieval.

Notes

This endpoint requires platform administrator privileges. The audit URL points to an external audit report that was registered when the smart contract was deployed.

Path Parameters

smartContractImplementationBlockchainsDeployId
integer<int64>
required

The unique identifier of the smart contract deployment.

Query Parameters

api-version
string | null

Response

Successfully retrieved audit registry record.

Wrapper for API operation results containing success status, error information, and return value.

isSuccess
boolean

True if the operation completed successfully, false otherwise.

Example:

true

isFailure
boolean

True if the operation failed, false otherwise.

Example:

false

error
object

Error information returned when the operation fails.

Example:
{
"code": "ValidationError",
"message": "The request parameters failed validation.",
"info": [
"The Name field is required.",
"The Id field must be greater than 0."
]
}
value
object

The result value returned when the operation is successful.