Get Contract List

Returns a list of all KIP-37 contracts deployed by a specified user. Contracts will be displayed in order of the requested creation time.

The status field in the response means the following:

  • init: The initial state before sending the transaction
  • submitted: The transaction for contract deployment has been sent
  • deployed: Contract has been deployed
  • imported: Contract list has been imported
  • failed: Deploy Contract transaction failed
Request
Security:
query Parameters
size
integer

The number of items to return (min=1, max=1000, default=100).

cursor
string

The pointer for the next request, after which the result will be returned.

status
string

Contract deployment status filters to specify your query. You can select one of [all,init,submitted,deployed]. The default value is all.

header Parameters
x-chain-id
required
string

Kaia Network Chain ID (1001 or 8217)

Responses
200

Your request was successful.

400

The request is not valid.

get/v2/contract
Request samples
curl -i -X GET \
  -u <username>:<password> \
  'https://kip37-api.klaytnapi.com/v2/contract?size=0&cursor=string&status=string' \
  -H 'x-chain-id: string'
Response samples
application/json

Your request was successful.

{
  • "items": [
    ],
  • "cursor": "eyJjcmVhdGVkX2F0IjoxNjE5NTkwNTAxLCJpZCI6ImNvbnRyYWN0IzEwMDEjODhjMTIyM2MtNjZhZi00MTIyLTk4MTgtMDY5YjJlM2M2YjMwIiwic19pZCI6Imtha2Fyb3QtMTYxOTU5MDUwMTYxNyJ9"
}