Get Contract Name
This API call returns the name of a contract if that contract exists within Harpie's database.
getContractName
POST
https://api.harpie.io/v2/getContractName
Get insight into who owns a specific contract. Returns "NO_DATA" if the contract is not a known contract in Harpie's database.
Request Body
Name
Type
Description
apiKey*
String
Your API key. You can find this in your dashboard.
address
String
The address that is being analyzed
{
contractOwner: String // Returns protocol name or "NO_DATA"
}
Example Requests
fetch("https://api.harpie.io/v2/getcontractname", {
method: "POST",
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
apiKey: "{YOUR API KEY HERE}",
address: "0x6c3f90f043a72fa612cbac8115ee7e52bde6e490"
})
})
Example Responses
{
contractOwner: "Curvefi: threepool"
}
Last updated