Skip to main content
Skip table of contents

Connect to a Blockchain RPC Endpoint

Our API Service allows you to access managed shared nodes so that you can forget about infrastructure and start developing immediately.

What is an RPC endpoint?

RPC stands for Remote Procedure Call. It is the communication layer that allows an application to interact with a blockchain node.

When you click "Swap" on a Uniswap (a decentralised exchange) or "Stake" on Lido (staking provider), your wallet sends an RPC request to a blockchain node. The node receives that request, executes the command on-chain, and returns a response.

In simple terms, RPCs are the bridge between the blockchain’s backend and your application’s frontend. Read more here

Getting Started

First, go to app.onfinality.io (opens new window) to create an account in OnFinality or log on using your existing account if you already have one.

Once you're in, go to to the API Service page and press Create App to Start

Enter your App’s name and select the Environment. The Environment lets your workspace know whether this is a production critical app or a development or test environment.

Press Create App to get started

Select Blockchain Network

Select the Blockchain Network you wish to connect to. In this example, we are connecting to the BNB Chain RPC

Select Network BNB Chain.png

Copy RPC Endpoints & Go

Simply copy from the available RPC endpoints, paste it into your code, and you’re away!

You can also access documentation and an example CURL in the integration tab

Additional Resources

https://documentation.onfinality.io/support/the-enhanced-api-service

https://documentation.onfinality.io/support/secure-your-private-api-endpoints

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.