Zarnith Docs
Try Now
  • Welcome
  • Getting Started
    • Quickstart
    • The Tech Behind Zarnith
  • Fee Router SDK
    • Installation
    • Core Concepts
  • Quick Start
  • Examples
    • Revenue Sharing dApp
    • Rollup Sequencer Incentive Manager
Powered by GitBook
On this page
  1. Fee Router SDK

Installation

A TypeScript SDK for interacting with the Solana Fee Router Program. This SDK simplifies the process of creating, managing, and using a fee routing system on Solana, allowing developers to easily distribute SOL to multiple addresses based on percentage splits.

Features

  • Create new routers with destinations and percentage splits

  • Update destinations for existing routers

  • Route SOL to multiple destinations according to configured percentages

  • Close router accounts and reclaim rent

  • Helper functions for SOL/lamports and percentage/basis points conversions

  • Simple, intuitive API with TypeScript support

You can install the ZarnithFi Router SDK using npm:

npm install @zarnithfi/zarnith-router

Or with yarn:

yarn add @zarnithfi/zarnith-router
PreviousThe Tech Behind ZarnithNextCore Concepts

Last updated 1 month ago