hmy_getCode

GetCode

Get the code at a specific address.

Parameters

  1. String - The address to get the code from.

  2. String - Block to query for information. Usually latest, which specifies the most recent block.

  3. Function - (optional) Optional callback, returns an error object as first parameter and the result as second.

Returns

  • String - The data at given address address.

Sample Curl Request

curl -d '{
  "jsonrpc": "2.0",
  "method": "hmy_getCode",
  "params":[
    "0x08AE1abFE01aEA60a47663bCe0794eCCD5763c19",
    "latest"
  ],
  "id": 1
}' -H "Content-Type:application/json" -X POST "https://api.s0.b.hmny.io"

Sample Curl Response

Last updated

Was this helpful?