Go to file
aniketfuryrocks a90609576f
successfully write to postgres
2023-01-28 10:33:42 +05:30
.github/workflows Add fly deployment action 2023-01-13 19:27:05 +00:00
bench WIP: 2023-01-28 02:05:29 +05:30
benches add bench files 2023-01-19 20:08:42 +05:30
migrations successfully write to postgres 2023-01-28 10:33:42 +05:30
src successfully write to postgres 2023-01-28 10:33:42 +05:30
tests WIP: 2023-01-28 02:05:29 +05:30
.dockerignore Add docker build, fly config 2023-01-13 19:23:53 +00:00
.gitignore ignore env, pks and pem files 2023-01-23 21:36:03 +05:30
Cargo.lock connect to postgres 2023-01-23 21:18:12 +05:30
Cargo.toml connect to postgres 2023-01-23 21:18:12 +05:30
Dockerfile Fix ws-addr launch argument 2023-01-20 18:16:30 +00:00
LICENSE Create LICENSE 2022-12-17 16:06:56 +05:30
README.md add bench files 2023-01-19 20:08:42 +05:30
fly.toml Update rpc address arguments and default ports 2023-01-19 16:50:42 +00:00
jest.config.js typescript tests 2023-01-04 19:16:43 +05:30
package.json cli and n_users_script 2023-01-07 15:25:12 +05:30
tsconfig.json typescript tests 2023-01-04 19:16:43 +05:30
yarn.lock Merge remote-tracking branch 'origin/pan/metrics-deployment' into lite_rpc_new 2023-01-18 23:08:37 +05:30

README.md

Lite RPC For Solana Blockchain

Submitting a transaction to be executed on the solana blockchain, requires the client to identify the next few leaders based on the leader schedule, look up their peering information in gossip and connect to them via the quic protocol. In order to simplify the process so it can be triggered from a web browser, most applications run full validators that forward the transactions according to the protocol on behalf of the web browser. Running full solana validators is incredibly resource intensive (>256GB RAM), the goal of this project would be to create a specialized micro-service that allows to deploy this logic quickly and allows horizontal scalability with commodity vms.

Confirmation strategies

  1. Subscribe to new blocks using blockSubscribe
  2. Subscribing to signatures with pool of rpc servers. (Under development)
  3. Listening to gossip protocol. (Future roadmap)

Executing

make sure solana-validator is running in the background with --rpc-pubsub-enable-block-subscription

run using

$ cargo run --release

to know about command line options

$ cargo run --release -- --help

Test and Bench

Make sure both solana-validator and lite-rpc is running

test

$ cargo test

bench

$ cd bench and cargo run --release

Find a new file named metrics.csv in the project root.

Copyright (c) 2022 Blockworks Foundation

Licensed under the MIT LICENSE