Upload contract template

Upload a new contract template. This contract template will be available for the workspace

Body Params
string
required

The name of the contract template

string
required

A short description of the contract template

string

A full description of the contract template. May contain to break the lines

string
required

The compiled artifact of this smart contract. Used for deployment of this contract template

string

The source code of the contract. Optional.

string
enum
required

The type of the contract template

Allowed:
docs
object

A natspec compliant documentation json. Can be retrieved from the output json after compilation

abi
array of objects
required

The abi of the contract template. Necessary for displaying and for after deployment encoding

abi*
attributes
object

The attributes related to this contract template. It will be displayed in the tokenization page

string
enum

The protocol that the template will be used for

Allowed:
Headers
string

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Responses

Language
URL
LoadingLoading…
Response
Choose an example:
application/json