DCN Transformation Service (0.1.0)

Download OpenAPI specification:Download

Transformation registry endpoints. Supports fetching the latest transformation by name, fetching a specific version by deployed address, and registering a transformation from Solidity source.

transformation

Operations related to transformation contracts: creation, inspection, and source management.

Head latest transformation

Check if a transformation of given name exists

path Parameters
name
required
string

Name of the transformation

Responses

CORS preflight

CORS preflight

path Parameters
name
required
string

Name of the transformation

Responses

Get latest transformation

Get newest version of a transformation by name

path Parameters
name
required
string

Name of the transformation

Responses

Response samples

Content type
application/json
{
  • "address": "string",
  • "local_address": "string",
  • "owner": "string",
  • "name": "string",
  • "sol_src": "string"
}

Head versioned transformation

Check if a specific transformation version exists

path Parameters
name
required
string

Name of the transformation

version
required
string (Address) ^0x[a-fA-F0-9]{40}$

Version of the transformation

Responses

CORS preflight

CORS preflight

path Parameters
name
required
string

Name of the transformation

version
required
string (Address) ^0x[a-fA-F0-9]{40}$

Version of the transformation

Responses

Get versioned transformation

Get a specific transformation version by address

path Parameters
name
required
string

Name of the transformation

version
required
string (Address) ^0x[a-fA-F0-9]{40}$

Version of the transformation

Responses

Response samples

Content type
application/json
{
  • "address": "string",
  • "local_address": "string",
  • "owner": "string",
  • "name": "string",
  • "sol_src": "string"
}

Register transformation

Register a transformation by name and its Solidity source

Authorizations:
BearerAuth
Request Body schema: application/json
name
required
string

Name of the transformation

sol_src
required
string

Solidity source code

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "sol_src": "string"
}

Response samples

Content type
application/json
{
  • "name": "string"
}