> For the complete documentation index, see [llms.txt](https://docs.harmony.one/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.harmony.one/home/developers/api/methods/contract-related-methods/hmy_call.md).

# hmy\_call

Executes a new message call immediately without creating a transaction on the block chain.

**Parameters**

1. `Object` - The transaction call object
2. `from`: `DATA`, 20 Bytes - (optional) The address the transaction is sent from.
3. `to`: `DATA`, 20 Bytes - The address the transaction is directed to.
4. `gas`: `QUANTITY` - (optional) Integer of the gas provided for the transaction execution. eth\_call consumes zero gas, but this parameter may be needed by some executions.
5. `gasPrice`: `QUANTITY` - (optional) Integer of the gasPrice used for each paid gas
6. `value`: `QUANTITY` - (optional) Integer of the value sent with this transaction
7. `data`: `DATA` - (optional) Hash of the method signature and encoded parameters.
8. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"` or `"pending"`

**Returns**

`DATA` - the return value of executed contract.

**Example**

```
// Request
curl -X POST "https://api.s0.b.hmny.io" --data '{
    "jsonrpc": "2.0",
    "method": "hmy_call",
    "params": [
        {
            "to": "0x08AE1abFE01aEA60a47663bCe0794eCCD5763c19"
        },
        "latest"
    ],
    "id": 1
}'

// Result
{
  "id":1,
  "jsonrpc": "2.0",
  "result": "0x"
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.harmony.one/home/developers/api/methods/contract-related-methods/hmy_call.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
