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 transactionsubmitted
: The transaction for contract deployment has been sentdeployed
: Contract has been deployedimported
: Contract list has been importedfailed
: Deploy Contract transaction failedYour request was successful.
The request is not valid.
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'
Your request was successful.
{- "items": [
- {
- "address": "0xcbcbe8297801600bf8e0530baa2fdd6358547ebe",
- "alias": "my-first-kip37",
- "status": "deployed",
- "options": {
- "enableGlobalFeePayer": true,
- "userFeePayer": {
- "krn": "krn:1001:wallet:88c1223c-66af-4122-9818-069b2e3c6b30:feepayer-pool:default",
- "address": "0xE8964cA0C83cBbF520df5597dc1f5EFc27E5E729"
}
}
}
], - "cursor": "eyJjcmVhdGVkX2F0IjoxNjE5NTkwNTAxLCJpZCI6ImNvbnRyYWN0IzEwMDEjODhjMTIyM2MtNjZhZi00MTIyLTk4MTgtMDY5YjJlM2M2YjMwIiwic19pZCI6Imtha2Fyb3QtMTYxOTU5MDUwMTYxNyJ9"
}