Integration

Introduction

circle-info

The builder of project can use RPC Exclusive for Project without subscribing to a plan.

BlockRzor RPC provides MEV protection for orderflow projects like Wallet, DEX, and Trading Bot on Ethereum, supporting refunds to the project users or project builders themselves.

BlockRzor RPC provides each project builder with an exclusive RPC URL, supporting visual customization of RPC domain names, transaction disclosure, refund address, and revert protection, facilitating the project builder to integrate RPC at a low cost and quickly.

How to integrate RPC into your project

1. Configure RPC

  1. Register and log in to the portal at blockrazor.ioarrow-up-right.

  2. Under the RPC module, click on the RPC page to view the configuration information of your RPC.

  3. Click on Update to enter the configuration update page, and adjust the parameters according to your needs. The meaning of the parameters is shown in the following table.

Parameters
Meaning

Default RPC URL

Each account automatically generates 1 Ethereum RPC and 1 BSC RPC by default. The Default RPC URL is automatically generated and cannot be modified.

Custom RPC URL

The third-level domain is allowed to be modified, and the Custom RPC URL can be promoted to the project's end-users through websites or docs, guiding them to add custom RPC within their wallets.

Hint

The system defaults to sharing the transaction's hash and logs with the Searcher. The more fields shared, the greater the possibility of obtaining refunds, please proceed with caution after evaluating the need for disclosure of transaction data.

Revert Protection

revert protection is enabled by default; if a transaction is detected to revert, it will not be included in the block. To ensure fast inclusion in a block, it is recommended to set priority fee (Ethereum) when sending transactions.

  1. Click Confirm, the system will update the RPC configuration in real time.

2. Integrate RPC

  1. Find the configuration file or code: Open the project workspace and locate the file or code segment that configures the RPC node in the DApp project. This could be a configuration file such as .env, config.js, truffle-config.js, etc., or it could be hardcoded directly in the code.

  2. Modify the RPC URL: Change the RPC URL in the configuration file or code to the Scutum RPC URL.

  3. Test the connection: After making the change, run the DApp or the corresponding test script locally to ensure that the new RPC URL works properly. You can use methods like web3.eth.net.isListening() or ethers.provider.pollingInterval to check if the connection is successful.

  4. Deploy the update: If the test passes, you can deploy the changes to the production environment.

3. Query Transactions

  1. Under the Scutum module, click on Refunds to view the refund, and click on Transactions to view the transactions submitted to dedicated RPC.

Last updated