Skip to main content

Proposed APIs for Improved Staking Subnet Integration

To enhance integration with the staking subnet, I propose adding two APIs:

  1. Paginated API – This API should provide a list of addresses and their respective staked amounts for each builder subnet, enabling efficient data retrieval.

  2. Address-specific Query API – If the staking data is already indexed, this API should allow querying a specific address to check if it has staked and, if so, retrieve the staked amount.

These APIs would empower developers to seamlessly integrate with the subnet and leverage staking data for feature gating.

Status: In Progress2 comments

Log in to comment and vote

Comments2

  • Kevin

    •

    Mar 17, 2025

    Here is a list of queries I think builder subnets want to be able to make today

    onboarding
    - is my builder subnet successfully registered to the builder contract?
    - can you give me all of the data for my unique subnet? (address, name, stake, etc)

    staking
    - how much stake is on my builder subnet?
    - how much total stake is staked across all subnets?
    - how many claimable emissions can my subnet claim?
    - can you give me a list of all the stakers and how much they have staked?


    cross-chain (base vs arbitrum vs. global)
    - show me all builder subnets across all chains that a particular ethereum address is the administer of
    - show me total stake towards an address (some addresses are admin for both Base and Arbitrum subnets)



  • Kevin

    •

    Mar 10, 2025

    I think many Builder Subnets can benefit from having this API.

    In order to maximize the utility of MOR staking, the Builder Subnet should be able to query data on their stakers and use this to enable staking based subscriptions as well as implementing distribution of rewards or airdrops on chain based on staking.