MilliNet HTTP Client for Web3 Supports OnFinality Endpoints

This guide describes the steps to install the MillNet HTTP client iFrame into a page like onfinality.io/polkadot.

About MilliNet

MilliNet is an HTTP client optimized for Web3. It is light-weight and runs entirely in the browser without a backend proxy. Like Postman, it can dispatch POST and GET requests to endpoints. Also, MilliNet measures round-trip times in milliseconds for min, max, avg, p50 and p95.

All of MilliNet’s features are accessible in a free public web app. Additionally, MilliNet is embeddable in an iFrame as an API / RPC playground.

The default config/URL for MilliNet as an iFrame is:

The widget is configured with URL query parameters which are listed in this doc.

OnFinality Setup

Since OnFinality’s endpoints use their their .io domain, we can add a parameter to allow only URLs with a second level domain of “onfinality.io”:

Btw, the same principle applies to Subquery.network.

OnFinality serves public endpoints and private endpoints authenticated with an API key in the endpoint URL or an auth header “apikey”. Therefore, we can filter allowed headers to “apikey” only:

Let’s also assume that OnFinality prefers to set the default loop counter to 5 and its max to 15:

The last two parameters should be “attached” dynamically depending on the page content since they are used to initialize the iFrame for a specific protocol / endpoint: e.g. to load a OnFinality URL into the form, use:

And to initialize the request body with a matching example, we can add:

Of course, OnFinality has a strong presence in EVM protocols which should be initialized “&protocolGroup=eth_blockNumber”. Aptos can use its own “&protocolGroup=get_ledger_info” while Sui uses “sui_getLatestCheck…” instead.

We have covered pretty much “all” the most interesting 500+ protocols in this list of 40+ configs for protocolGroup values including TON, NEAR, Bitcoin / UTXO, Solana, Starkent, Stellar, Tendermint / Cosmos etc.

The final iFrame HTML could come out to something like:

Click/tap RUN or START buttons to trigger RPC requests:

Follow us on:

John Doe
John Doe@username
Read More
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
John Doe
John Doe@username
Read More
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
John Doe
John Doe@username
Read More
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Previous
Next