Code

Retrieve a contract's bytecode

get

If the provided address is not a contract, empty bytecode is returned.

Path parameters
addressstring · hexRequired

The address of the account/ contract

Example: 0x0000000000000000000000000000456E65726779Pattern: ^(0x)?[0-9a-fA-F]{40}$
Query parameters
revisionstringOptional

Specify either best, a block number or block ID. If omitted, the best block is assumed.

Responses
200
OK
application/json
get
GET /accounts/{address}/code HTTP/1.1
Host: vet.nownodes.io
Accept: */*
{
  "code": "0x6060604052600080fd00a165627a7a72305820c23d3ae2dc86ad130561a2829d87c7cb8435365492bd1548eb7e7fc0f3632be90029"
}