Getting started

Create an project and send requests to the Ethereum network.

1. Sign in to paralinker

To sign in the website, You can sign in directly using Metamask Wallet, or sign in via email.

2. Create a project

Once verified, you’ll be taken to the dashboard where you can create projects, view stats and explorer.

You must create an API key to authenticate your requests for your project. Click Add.

From the pop-up, provide a name and select the chain , then click OK.

Use the available endpoints to send API requests by click View key.

3. Send requests

Interact with the project by sending requests. The following examples interact with the Ethereum network by sending requests using HTTP.

All requests are POST requests.

Use a tool such as the Client Uniform Resource Locator (curl) or Postman to make requests.

3.1 Get the current block number

Retrieve the current block number.

curl https://eth-mainnet.paralinker.com/api/v1/API-KEY \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}'

You'll receive a response similar to:

{"jsonrpc":"2.0","id":1,"result":"0xde5fba"}

The data returned is in hexadecimal, prefixed with 0x. If you convert de5fba to decimal, the resulting number is 14573498, representing the current block number at the time the query was made.

3.2 View the Ether balance of a specified contract

Check the balance of an Ethereum smart contract.

The example code checks the latest balance of the Ethereum Proof of Stake (PoS) contract.

curl https://eth-mainnet.paralinker.com/api/v1/API-KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0x00000000219ab540356cBB839Cbe05303d7705Fa", "latest"],"id":1}'

You'll receive a result similar to:

{"jsonrpc":"2.0","id":1,"result":"0x96c8e932f1e499c855045"}

This result is the hexadecimal value of the contract in Wei (the smallest denomination of Ether).

The decimal conversion of the result is 11392978000069000000000069 Wei, which equals 11392978.000069000000000069 Ether.

4. Use the Developer Tools

Provide developer tools to configure, monitor, and analyze API requests.

4.1 Dashboard

Instantly check on the high-level health of all your apps in one place, including total requests, median response.

4.2 Stats

Provides a summary of API usage, automatically generate statistics by time, network and method.

4.3 Explorer

Provide a real-time query visualizer to help you quickly scan for recent requests and recent errors.

Last updated