Explanation

What is Bloodline?

First of all: Bloodline allows you to select RPCs for specified RPC calls

For example you have 2 RPCs - A and B.

  • A is good for data fetch but not for sending transactions.

  • B has good landing rate but can't properly fetch needed data.

Using bloodline you can assign sendTransaction call for B RPC and getBalance call for A RPC. All methods (calls) can be found at https://solana.com/docs/rpc/http

For example you don't have RPC but you know BLOOD has RPCs with limitations (some calls are banned) - how do I setup then? - Buy Helius developer plan for 50$ a month - Modify your Bloodline config with the following fields

defaults = ['blood_node_us']

# RPC name to URL mapping
[rpcs]
blood_node_us = 'http://ny.rpc.bloodydash.xyz:11123/'
blood_node_eu = 'http://fra.rpc.bloodydash.xyz:11123/'
hel = 'https://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY'

# Method name to RPCs mapping
[methods]
sendTransaction = ['hel']
getTokenAccountsByOwner = ['hel']
getTokenLargestAccounts = ['hel']
getProgramAccounts = ['hel']
getBlock = ['hel']
getTransaction = ['hel']
getSignaturesForAddress = ['hel']
getMultipleAccounts = ['hel']

Moreover: Using Bloodline allows you to change / edit RPCs in the real time, without closing the bot or stop tasks

For example you are running tasks and after some time you see that one of your RPCs is dead. If you use Bloodline you can close it, replace dead RPC with a good one and open it again without a need to restart bot / tasks

How to use Bloodline?

  1. Download file from bloodline channel in discord.

  2. Place it in empty folder and open it, config file will be created.

  3. Fill your Config file and start bloodline again.

  4. You will see Address on first line, copy it and paste in Blood bot RPC file and assign name (no need to paste WS there).

  5. Use this RPC name in task.

Last updated