1

I have the following code:

import requests

url = "https://eth-mainnet.g.alchemy.com/v2/<REDACTED_API_KEY>/findContractDeployer"

payload = {"contractAddress": "0x514910771AF9Ca656af840dff83E8264EcF986CA"}
headers = {
    "accept": "application/json",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)

However, I keep getting "Not Found" to return. But this is identical to what is in the Alchemy docs.

This is happening on a few different endpoints, and I get the same error running this as a curl command. What is going on?

2
  • 1
    When I look at their implementation of the js SDK, they don't send request to the findContractDeployer endpoint but used only eth_getCode to perform binary search for the deployment tx (where the code of that address from 0x0 becomes something else) : github.com/alchemyplatform/alchemy-sdk-js/blob/…. Probably that endpoint doesn't work
    – minhhn2910
    Dec 29, 2022 at 8:25
  • ah I see, so the SDK is not actually necessarily hitting a specific endpoint of the alchemy API. Dec 29, 2022 at 14:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.