When I deploy a contract on to an eth network through remix, is there a way I can export that contract's private key out of remix?

  • Contracts do not have private keys. Are you referring to the private key of the account that deployed the contract? – Shane Fontaine Sep 28 '20 at 2:55
  • Oh ok I was kind of confused. If other people send other tokens into a contract a function or selfdestruct() can be used to get it out right – 1AndOnlyPika Sep 28 '20 at 3:21
  • Contracts can have private keys, and it would function like any other account (e.g. you'd be able to send funds from the account). Deploying a contract does not give you the private key for the contract address however. What you're likely looking for is contract ownership. – Morten Sep 28 '20 at 6:53
  • 1
    Contracts can have private keys associated with them, but they cannot have private keys. Ownership of a contract simply maps a public key to administrative functions ona contract, but does not mean the contract has a private key. – Shane Fontaine Sep 28 '20 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.