Is there a way to get the metadata(bytecode, ABI) of a deployed contract if you only know the address of the contract?
In geth there is a function in the admin interface called getContractinfo(), but I get an error when I call it: The method admin_getContractInfo does not exist/is not available
In the documentation(https://github.com/ethereum/go-ethereum/wiki/Contracts-and-Transactions) I saw an example but I don't think it works:
// get the contract info for contract address to do manual verification
var info = admin.getContractInfo(address) // lookup, fetch, decode
var source = info.source;
var abiDef = info.abiDefinition
attach
ed console? Do any of the otheradmin
commands work?