MilliNet HTTP Client for Web3 Now Supports Dwellir.com Endpoints

This guide describes the steps to install the MillNet HTTP client iFrame into a page like https://www.dwellir.com/networks/polkadot

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.

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

  • https://www.comparenodes.com/millinet/millinet-widget/
  • The widget is configured with URL query parameters which are listed in this doc.

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

  • ?endpointSLD=dwellir.com

Dwellir serves public endpoints and private endpoints authenticated with an API key in the endpoint URL. Therefore, we can hide the header authentication controls for iFrames displayed to their visitors by adding the following configuration into the URL for the iFrame:

  • &showAuthControls=false

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

  • &defaultLoop=4&maxLoop=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 Dwellir URL into the form, use:

  • &endpointURL=https://polkadot-rpc.n.dwellir.com/

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

  • &protocolGroup=chain_getBlockHash

Of course, Dwellir has a strong presence in EVM protocols which should be initialized “&protocolGroup=eth_blockNumber”. Aptos and Movement can use their own “&protocolGroup=get_ledger_info”. Sui uses “sui_getLatestCheckpointSequenceNumber” 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, Tendermint / Cosmos etc.

The final iFrame HTML could come out to something like:

<iframe
src="https://www.comparenodes.com/millinet/millinet-widget/
?endpointSLD=dwellir.com&showAuthControls=false&defaultLoop=4&maxLoop=15
&endpointURL=https://polkadot-rpc.n.dwellir.com/&protocolGroup=chain_getBlockHash"
style="min-width: 360px; max-width: 712px; width: 100%; height: 1185px;
border: 1px solid #161618; border-radius:4px">
</iframe>


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