We refreshed our doc site!

Bookmarked links may have changed

Read release notes

listContracts

Web3 Services
Compliance Engine

List contracts

GEThttps://api.circle.com/v1/w3s/contracts

Fetch a list of contracts that you've imported and/or deployed.

Query parameters
blockchain
string

Filter by blockchain.

contractInputType
string

Filter contracts by input type.

deployerAddress
string

Filter contracts by deployer address.

name
string

Filter contracts by name.

status
string

Filter contracts by status.

from
date-time

Queries items created since the specified date-time (inclusive) in ISO 8601 format.

to
date-time

Queries items created before the specified date-time (inclusive) in ISO 8601 format.

pageBefore
uuid

A collection ID value used for pagination.

It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize.

The items will be returned in the natural order of the collection.

The resource will return the first page if neither pageAfter nor pageBefore are specified.

SHOULD NOT be used in conjunction with pageAfter.

pageAfter
uuid

A collection ID value used for pagination.

It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize.

The items will be returned in the natural order of the collection.

The resource will return the first page if neither pageAfter nor pageBefore are specified.

SHOULD NOT be used in conjunction with pageBefore.

pageSize
integer
1 to 50
Default is 10

Limits the number of items to be returned.

Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used.

If avoided, the collection will determine the page size itself.

Response
RequestChoose a language
ResponseChoose an example
1{
2  "data": {
3    "contracts": [
4      {
5        "id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
6        "deployerWalletID": "f39e3dbd-84af-4d3d-b5ac-98fbe047ce6a",
7        "deploymentTransactionId": "00ca46f3-c31b-4e3a-92a9-068d4ff26a63",
8        "txHash": "0x4a25cc5e661d8504b59c5f38ba93f010e8518966f00e2ceda7955c4b8621357d",
9        "abiJson": "[{\"inputs\": [],\"stateMutability\": \"nonpayable\",\"type\": \"constructor\"},...",
10        "archived": false,
11        "blockchain": "MATIC-AMOY",
12        "bytecode": "0x60806040523480156200001157600080fd5b50604051806040...",
13        "contractAddress": "0x1e124d7384cd34448ea5907bd0052a79355ab5eb",
14        "contractInputType": "IMPORT",
15        "deployerAddress": "0x1bf9ad0cc2ad298c69a2995aa806ee832788218c",
16        "deployerUserID": "",
17        "deploymentErrorReason": "",
18        "deploymentErrorDetails": "",
19        "name": "First Contract",
20        "description": "My first hello world contract",
21        "status": "PENDING",
22        "verificationStatus": "UNVERIFIED",
23        "metadataLink": "https://ipfs.io/ipfs/Qme7ss3ARVgxv6rXqVPiikMJ8u2NLgmgszg13pYrDKEoiu",
24        "updateDate": "2023-01-01T12:04:05Z",
25        "createDate": "2023-01-01T12:04:05Z",
26        "sourceCode": [
27          {
28            "fileName": "openzeppelin-solidity/contracts/math/SafeMath.sol",
29            "fileContent": "pragma solidity ^0.4.24;\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks..."
30          }
31        ],
32        "functions": [
33          {
34            "name": "approve",
35            "stateMutability": "nonpayable",
36            "type": "function",
37            "inputs": [
38              {
39                "components": [],
40                "indexed": false,
41                "name": "to",
42                "type": "address",
43                "flattenedType": ""
44              }
45            ],
46            "outputs": [
47              {
48                "components": [],
49                "indexed": false,
50                "name": "to",
51                "type": "address",
52                "flattenedType": ""
53              }
54            ]
55          }
56        ],
57        "events": [
58          {
59            "name": "Approval",
60            "type": "event",
61            "anonymous": false,
62            "inputs": [
63              {
64                "components": [],
65                "indexed": false,
66                "name": "to",
67                "type": "address",
68                "flattenedType": ""
69              }
70            ]
71          }
72        ],
73        "implementationContract": {}
74      }
75    ]
76  }
77}
Did this page help you?
© 2023-2024 Circle Technology Services, LLC. All rights reserved.