POST
/
contracts
curl --request POST \
  --url https://protocol-sandbox.lumx.io/v2/contracts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "symbol": "contractName",
  "description": "<string>",
  "type": "fungible"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "<string>",
  "address": "<string>",
  "name": "<string>",
  "symbol": "contractName",
  "description": "<string>",
  "blockchainName": "Ethereum",
  "baseUri": "<string>",
  "blockExplorerUrl": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "deployedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <API_KEY>.

Body

application/json

Response

201
application/json

Contract created successfully (but not deployed yet).

The response is of type object.