eth_getCode
Returns the code at given address at given time (block number)
web3.eth.getCode(address [, defaultBlock] [, callback])Parameters
The address to get the code from.
(optional) If you pass this parameter it will not use the default block set with web3.eth.defaultBlock. Pre-defined block numbers as
"earliest","latest"and"pending"can also be used.Optional callback, returns an error object as first parameter and the result as second.
Returns
The data at given address address
Example
> web3.eth.getCode("0x063eBCD1dB02320814Acc0721e65f14b8755Ff41").then(console.log);
> 0xLast updated