🚀 We’re excited to announce our $35m Series A led by Tiger Global: Press Release, Coindesk, Bloomberg, Business Insider & RefreshMiami!

Contents

eth_getCode RPC method

Parameters:

  1. Address - The address to check for code.

Returns:

  1. result - String value of the compiled bytecode.

Code Examples:

const ethers = require("ethers");
(async () => {
  const provider = new ethers.providers.JsonRpcProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/");
  const code = await provider.getCode(
    "0x5B56438000bAc5ed2c6E0c1EcFF4354aBfFaf889",
    "latest"
  );
  console.log(code);
})();
Ready to try QuickNode? Start your 7-day free trial