NCN Cookbook
  • Jito Restaking

    • Jito Restaking Repository
    • Jito Restaking Documentation
    • Jito Restaking CLI
  • Jito Restaking

    • Jito Restaking Repository
    • Jito Restaking Documentation
    • Jito Restaking CLI
  • Introduction

    • Intro to Jito Restaking
    • NCN Overview
  • Core Concepts

    • Overview
    • NCN
    • Operator
    • Vault
  • Getting Started

    • Installation
    • Rust Client
    • TypeScript Client
    • Python Client
  • Integrating with Jito Restaking

    • Restaking Program
    • Vault Program
  • Building NCN

    • NCN Design
    • Pricing
    • Snapshot
    • Core Logic
    • Rewards Payment
  • References

    • Overview of Real-World Projects
    • Jito Tip Router Program
  • Developer Resources

    • Learning & Core Resources for Jito Restaking

NCN

Overview

Key functionalities include:

  • Authority Management: Designate and validate admins for various NCN operations.
  • Operator and Vault Tracking

Key Components

1. NCN Structure

The NCN account structure is designed to handle various administrative and operational roles within the network:

FieldTypeDescription
basePubkeyThe base account used as a PDA seed.
adminPubkeyOverall administrator of the NCN.
operator_adminPubkeyAdmin responsible for managing operators.
vault_adminPubkeyAdmin responsible for managing vaults.
slasher_adminPubkeyAdmin responsible for managing slashers.
delegate_adminPubkeyAdmin for delegating assets of NCN account.
metadata_adminPubkeyAdmin responsible for NCN metadata updates.
weight_table_adminPubkeyAdmin for managing asset weight tables.
ncn_program_adminPubkeyAdmin for on-chain programs associated with the NCN.
indexu64Index of the NCN account.
operator_countu64Number of operators registered with the NCN.
vault_countu64Number of vaults registered with the NCN.
slasher_countu64Number of slashers registered with the NCN.

PDA

use jito_restaking_core::ncn::Ncn;

let program_id = jito_restaking_program::id();
let base_pubkey = pubkey!("base pubkey here");
let ncn_pubkey = Ncn::find_program_address(&program_id, &base_pubkey).0;

References

  • Restaking Accounts
Last Updated:
Contributors: Aoi Kurokawa
Prev
Overview
Next
Operator