Index of every page on this site: llms.txt
All skills
injectivelabs avatar

/injective-trading-staking

@6d68c2c
Run it yourself

Query and manage Injective staking delegations, rewards, and validator info. Look up staker addresses, delegation amounts, unbonding status, and claimed rewards via Injective LCD/REST API.

Use this Skill: https://skilld.dev/gh/injectivelabs/agent-skills/injective-trading-staking

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈54 tokens for metadata: the name and description. ≈779 when used: this file. ≈462 more on demand in 2 files.

Description uses 2.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈216 characters, or 2.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Injective Trading Staking, Skill Guide

Query Injective staking data via LCD REST API. Covers delegations, rewards, validators, and unbonding. Useful for treasury dashboards, staker audits, and validator monitoring.

When to apply

Sample prompts: ./references/sample-prompts.md

Important

Endpoints

All endpoints use Injective LCD REST API:

  • Mainnet: https://lcd.injective.network
  • Testnet: https://testnet.sentry.lcd.injective.network:443

Key Facts

  • Decimals:
    • All amounts in inj denom use 1e18 (like ETH wei)
  • Unbonding period:
    • 21 days on Injective mainnet
  • Rewards:
    • Must be claimed via MsgWithdrawDelegatorReward.
    • Track claimed vs accrued separately
  • Delegation shares:
    • Not 1:1 with tokens.
    • Use validator.tokens / validator.delegator_shares ratio
  • Slashing:
    • Check signing_infos for validator jail status

Activities

Query Delegations for an Address

GET /cosmos/staking/v1beta1/delegations/{delegator_addr}

Returns all active delegations with validator address and shares.

Query Delegation to Specific Validator

GET /cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}

Query Unbonding Delegations

GET /cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations

Query Staking Rewards

GET /cosmos/distribution/v1beta1/delegators/{delegator_addr}/rewards

Returns pending (unclaimed) rewards per validator and total.

Query Validators

GET /cosmos/staking/v1beta1/validators?status=BOND_STATUS_BONDED&pagination.limit=100

Query Single Validator

GET /cosmos/staking/v1beta1/validators/{validator_addr}

Query Staking Parameters

GET /cosmos/staking/v1beta1/params

Returns unbonding time, max validators, bond denom (inj).

Check pending rewards

GET "https://lcd.injective.network/cosmos/distribution/v1beta1/delegators/inj1.../rewards"

Check total staked INJ for a wallet

curl -s "https://lcd.injective.network/cosmos/staking/v1beta1/delegations/inj1..." | python3 -c "
import json, sys
data = json.load(sys.stdin)
total = sum(int(d['balance']['amount']) for d in data.get('delegation_responses', []))
print(f'{total / 1e18:.2f} INJ staked')
"

Find all stakers with > N INJ delegated

Use the archival node endpoints for historical queries:

  • Tendermint RPC: https://tm.injective.network:443
  • LCD REST: https://lcd.injective.network
  • gRPC: grpc.injective.network:443

Query validators first. Then iterate delegations per validator. Note: Pagination required (default limit 100).

Get delegations

This uses the injective-py SDK.

from pyinjective.async_client import AsyncClient
from pyinjective.core.network import Network

async def get_delegations(address: str):
    network = Network.mainnet()
    client = AsyncClient(network)
    delegations = await client.fetch_delegations(delegator_addr=address)
    return delegations

Related skills

None

Prerequisites

  • curl installed
  • for some of these actions: python installed

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert1mo3 checks · Risk HIGH
  • Gen Agent Trust Hub1mo

    This skill provides capabilities for querying and managing Injective blockchain staking data. It is authored by the vendor and uses official network endpoints. The security risk is low, primarily involving the surface area for indirect prompt injection from public blockchain data and the use of command-line tools for data processing.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 6d68c2c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 9 months ago
uses
[]
metadata
{
  "author": "ckhbtc",
  "version": "0.0.0"
}

README badge

README badge for injectivelabs/agent-skills/injective-trading-staking