Skip to main content
GET
/
platform
/
admin
/
smart_contract_implementations_deploy
/
{id}
Get implementation deployment report
curl --request GET \
  --url https://api.example.com/platform/admin/smart_contract_implementations_deploy/{id}
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Description

Returns a comprehensive deployment report for a smart contract implementation, showing where it has been deployed, transaction hashes, deployment dates, and contract addresses across all blockchain networks.

Input

  • id (long, required) - The unique identifier of the smart contract implementation.

Output

Returns a SmartContractImplementationDeployReportModel containing:
  • implementation (object) - Full implementation details including source code and metadata.
  • deployments (array) - Collection of deployment records, each containing:
    • blockchainId (long) - Target blockchain network identifier (1 for Ethereum, 137 for Polygon, etc.).
    • blockchainName (string) - Human-readable blockchain name.
    • transactionHash (string) - Deployment transaction hash (0x…).
    • contractAddress (string) - Deployed contract address on the blockchain (0x…).
    • deploymentDate (DateTime) - Timestamp of successful deployment.
    • ownerWalletTenantId (long) - Identifier of the wallet tenant that owns the deployed contract.

Examples

Request
GET /api/platform/smart-contract-implementations/1/deploys
Authorization: Bearer {token}
Response (200 OK)
{
  "data": {
    "implementation": {
      "id": 1,
      "type": "IssuerFactoryImplementation",
      "description": "Factory contract for creating token issuers",
      "contractClassName": "IssuerFactory"
    },
    "deployments": [
      {
        "blockchainId": 1,
        "blockchainName": "Ethereum Mainnet",
        "transactionHash": "0x1a2b3c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890",
        "contractAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
        "deploymentDate": "2024-01-20T10:15:00Z",
        "ownerWalletTenantId": 2048
      },
      {
        "blockchainId": 137,
        "blockchainName": "Polygon Mainnet",
        "transactionHash": "0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba",
        "contractAddress": "0x1234567890AbcdEF1234567890aBcdef12345678",
        "deploymentDate": "2024-02-15T14:30:00Z",
        "ownerWalletTenantId": 2048
      }
    ]
  }
}

Errors

  • 400 Bad Request: Invalid implementation ID format or negative value.
  • 401 Unauthorized: Missing or invalid authentication token.
  • 403 Forbidden: User lacks platform administrator privileges.
  • 404 Not Found: Smart contract implementation with specified ID does not exist.
  • 500 Internal Server Error: Unexpected system error occurred.

Notes

Requires platform administrator privileges. The report includes both pending and completed deployments. Transaction hashes can be used to verify deployment status on blockchain explorers. Multiple deployments to the same blockchain are allowed with different owner wallets.

Path Parameters

id
integer<int64>
required

Unique identifier of the smart contract implementation.

Query Parameters

api-version
string | null

Response

Deployment report retrieved successfully.

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.