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

Operator

Overview

The Operator Account:

  • Stores global metadata for a specific operator.
  • Tracks the relationship between the operator and other NCN components (e.g. Vaults, NCNs).
  • Manages administrative roles, including adding/removing support for NCNs and Vaults.

Key functionalities include:

  • Admin Role Management: Allows for delegating responsibilities to specialized admin roles.
  • Operator Fee Management: Tracks fees charged by operators.
  • NCN and Vault Indexing: Maintains counts of linked NCNs and Vaults for efficient indexing.

Key Components

1. Operator Structure

FieldTypeDescription
basePubkeyThe base account used as a PDA seed.
adminPubkeyOverall administrator of the operator.
ncn_adminPubkeyAdmin responsible for managing NCNs.
vault_adminPubkeyAdmin responsible for managing Vaults.
delegate_adminPubkeyAdmin for delegating asssets from the operator.
metadata_adminPubkeyAdmin authorized to update operator metadata.
voterPubkeyPubkey used to sign transactions for NCN interaction.
indexu64Index of the operator account.
ncn_countu64Number of NCNs associated with the operator.
vault_countu64Number of Vaults associated with the operator.
operator_fee_bpsu64Operator fee in basis points.

PDA

use jito_restaking_core::operator::Operator;

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

References

  • Restaking Accounts
Last Updated:
Contributors: Aoi Kurokawa
Prev
NCN
Next
Vault