Skip to main content
GET
/
tenant
/
{tenantId}
/
admin
/
blockchain
/
{blockchainId}
Get Tenant Blockchain
curl --request GET \
  --url https://api.example.com/tenant/{tenantId}/admin/blockchain/{blockchainId}
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Description

Fetches comprehensive details about a specific blockchain configuration for a tenant, including network information and operational settings.

Input

  • tenantId (long, required) - The unique identifier of the tenant.
  • blockchainId (long, required) - The unique identifier of the blockchain.

Output

Returns a GetTenantBlockchainResponse containing detailed blockchain configuration information.

Examples

Request
GET /api/tenant/1024/admin/blockchain/1
Response (200 OK)
{
  "blockchainId": 1,
  "name": "Ethereum Mainnet",
  "symbol": "ETH",
  "chainId": 1,
  "isTestnet": false,
  "rpcUrl": "https://mainnet.infura.io/v3/...",
  "explorerUrl": "https://etherscan.io"
}

Errors

  • 400 Bad Request: Invalid tenant or blockchain identifier.
  • 401 Unauthorized: The caller is not authenticated.
  • 403 Forbidden: The caller is not authorized to view blockchain details.
  • 404 Not Found: The tenant or blockchain could not be found.
  • 500 Internal Server Error: An unexpected server error occurred.

Notes

This endpoint provides detailed blockchain configuration for administrative purposes.

Path Parameters

tenantId
integer<int64>
required

The unique identifier of the tenant.

blockchainId
integer<int64>
required

The unique identifier of the blockchain.

Query Parameters

api-version
string | null

Response

Blockchain details 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.