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

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <API_KEY>.

Path Parameters

contractId
string
required

The ID of the contract.

Body

application/json
name
string

The name of the contract.

symbol
string
default: contractName

The symbol of the contract. Must be between 3 and 5 alphanumeric characters.

description
string

The description of the contract.

Response

200 - application/json
id
string

The ID of the contract.

type
string

The type of the contract.

address
string | null

The blockchain address of this contract.

name
string

The name of the contract.

symbol
string
default: contractName

The symbol of the contract. Must be between 3 and 5 alphanumeric characters.

description
string | null

The description of the contract.

blockchainName
enum<string>

The blockchain name of the contract.

Available options:
Ethereum,
Polygon,
Chiliz
blockscanUrl
string | null

The block explorer url of this contract.

createdAt
string

The timestamp from when the contract was created.

updatedAt
string

The timestamp from when the contract was last updated.

deployedAt
string | null

The timestamp from when the contract was deployed to the blockchain.