POST
/
admin
/
contract
/
authorizeWithJSONABI
curl --request POST \
  --url https://api.syndicate.io/admin/contract/authorizeWithJSONABI \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "abi": [
    {
      "constant": false,
      "inputs": [
        {
          "components": [
            {
              "name": "name",
              "type": "string"
            },
            {
              "name": "age",
              "type": "uint16"
            }
          ],
          "name": "person",
          "type": "tuple"
        }
      ],
      "name": "addPerson",
      "outputs": [],
      "payable": false,
      "type": "function"
    }
  ],
  "address": "0x94f6E9c420Db1566A3c035Df291F206eBfAfC762",
  "chainId": 80001,
  "name": "My Contract",
  "projectId": "638d1d78-d63d-4cda-9f1e-4d0799acfeee"
}'
{
  "address": "testAddress",
  "chainId": 80001,
  "createdAt": "2023-10-25T13:00:49.667604Z",
  "functionSignatures": [
    {
      "contractId": "70c2891a-6471-4b50-844b-6a58b69ff8fb",
      "createdAt": "2023-10-25T13:00:49.667604Z",
      "functionAbi": {
        "inputs": [
          {
            "components": [
              {
                "name": "name",
                "type": "string"
              },
              {
                "name": "age",
                "type": "uint16"
              }
            ],
            "name": "person",
            "type": "tuple"
          }
        ],
        "name": "addPerson",
        "stateMutability": "nonpayable",
        "type": "function"
      },
      "hashedSignature": "0x1234",
      "id": "4416002f-6b79-4c24-b367-80572c37f35a",
      "payable": false,
      "signature": "addPerson((string name, uint16 age) person))"
    }
  ],
  "id": "70c2891a-6471-4b50-844b-6a58b69ff8fb",
  "name": "My Contract",
  "projectId": "638d1d78-d63d-4cda-9f1e-4d0799acfeee",
  "updatedAt": "2023-10-25T13:00:49.667604Z"
}

API Endpoint

https://api.syndicate.io/admin/contract/authorizeWithJSONABI

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
address
string
required
chainId
integer
required
expiresAt
string | null
name
string
required
projectId
string
required
abi
any[]
required

Response

200 - application/json
createdAt
string
required
id
string
required
updatedAt
string | null
address
string
required
chainId
integer
required
claimedByOrganizationId
string | null
expiresAt
string | null
functionSignatures
object[]
required
name
string
required
projectId
string
required