# API

We will be using the GETH playground for api calling.&#x20;

{% embed url="<https://playground.open-rpc.org/?schemaUrl=https://raw.githubusercontent.com/ethereum/execution-apis/assembled-spec/openrpc.json&uiSchema[appBar>]\[ui:examplesDropdown]=false\&uiSchema\[appBar]\[ui:input]=false\&uiSchema\[appBar]\[ui:splitView]=false" %}

<figure><img src="/files/YSSqizu4Vwkn5Aw5SBtF" alt=""><figcaption></figcaption></figure>

Make sure your readings are set to HTTP

<figure><img src="/files/theTgpmoAZMCvMNrpRX7" alt=""><figcaption></figcaption></figure>

Find the API call you are looking for, click on "TRY IT NOW"

<figure><img src="/files/SJBO5Zw8YNshnAOIXfjG" alt=""><figcaption></figcaption></figure>

Set it to HTTP, type in the Berylbit RPC URL which is <https://mainnet.berylbit.io> then click the play button

<figure><img src="/files/U9QIy7slnvLrKaIN8iMO" alt=""><figcaption></figcaption></figure>

\*If it sends in errors or bad requests refresh the page and try again\*&#x20;

Now that we got our result, it gives the result in Hexadecimal format. Using this website - [**https://www.rapidtables.com/convert/number/hex-to-decimal.html**](https://www.rapidtables.com/convert/number/hex-to-decimal.html) **I can find the Berylbit gas fee on the network**&#x20;

**Here is a example of me finding out the Chain ID from API calling and decoding the HEX to decimal**&#x20;

<figure><img src="/files/bXBu96OUswj6gfBh9WRb" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://berylbit-labs.gitbook.io/product-docs/product-guides-1/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
