---
description: How to gather API data reading the node.
---

# 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="https://3653971748-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Foza0V0OsCgHQ2CKZ1LEM%2Fuploads%2FN4BREXzdAQM8MD5fUBhS%2FCapture.PNG?alt=media&#x26;token=529cd6a4-ca2a-452a-bbdd-6f65dcddce0f" alt=""><figcaption></figcaption></figure>

Make sure your readings are set to HTTP

<figure><img src="https://3653971748-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Foza0V0OsCgHQ2CKZ1LEM%2Fuploads%2FtmOsW7nK7wf8v3fIbxn0%2FCapture.PNG?alt=media&#x26;token=937270da-4e61-4fc5-83ae-ad2a90c481e3" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3653971748-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Foza0V0OsCgHQ2CKZ1LEM%2Fuploads%2FTaxVYrLJcv4a8aLiAqJs%2FCapture.PNG?alt=media&#x26;token=6fdd2c30-fcd5-4be5-b83b-6ecd6435777e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3653971748-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Foza0V0OsCgHQ2CKZ1LEM%2Fuploads%2F1zBGEtWjBJXxYPbdMoTw%2FCapture.PNG?alt=media&#x26;token=01c2af39-f84d-403c-8446-7e377ad88137" 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="https://3653971748-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Foza0V0OsCgHQ2CKZ1LEM%2Fuploads%2Ftn0CpWPdcGPtdGbFvtek%2FCapture.PNG?alt=media&#x26;token=cbfa7d4c-08cc-4540-8eb0-65f958262d10" alt=""><figcaption></figcaption></figure>

