CodeAt returns the contract code of the given account. The block number can be nil, in which case the code is taken from the latest known block.
(ctx context.Context, account common.Address, blockNumber *big.Int)
| 440 | // CodeAt returns the contract code of the given account. |
| 441 | // The block number can be nil, in which case the code is taken from the latest known block. |
| 442 | func (c *Client) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error) { |
| 443 | var result hexutil.Bytes |
| 444 | err := c.c.CallContext(ctx, &result, "eth_getCode", account, toBlockNumArg(blockNumber)) |
| 445 | return result, err |
| 446 | } |
| 447 | |
| 448 | // NonceAt returns the account nonce of the given account. |
| 449 | // The block number can be nil, in which case the nonce is taken from the latest known block. |
nothing calls this directly
no test coverage detected