JavaScript / TypeScript SDK
npm i @fenryxlabs/fenryx-sdk
Construct a client
import { FenryxClient } from '@fenryxlabs/fenryx-sdk';
const c = new FenryxClient('https://v2.rpc.fenryx.io');
Core methods
| Method | Endpoint |
|---|---|
status() | GET /status |
account(addr) | GET /account/:addr |
block(height) | GET /blocks/:height |
tx(hash) | GET /txs/:hash |
mempoolSize() | GET /mempool/size |
broadcast(bytes) | POST /broadcast_tx |
Module shortcuts (Bloque 12.2)
await c.pools(); // Omnia pool state
await c.apexAll(); // APEX parameters
await c.gossipRoot(); // Gossip merkle root
await c.tpsEstimate(); // Current TPS estimate
await c.stakingV2Records();
await c.stakingV2RewardPool();
await c.pouRecords(); // PoU file-storage proofs
await c.pcStats(); // Performance-capping
await c.insuranceProposals();
await c.guardianGenesis();
await c.didVerify('frx1...');
await c.govV2Proposals();
await c.govV2Info();
await c.upgradeCurrent();
await c.dexPools();
await c.fileManifests();
await c.wasmContracts();
await c.subnets(); // Franchise subnets
await c.btcRelayState();
await c.tokenList();
await c.lightningChannel(42);
await c.x1Contract('0x…');
Escape hatch
When a new endpoint ships before the SDK is updated:
await c.getRaw('omnia/some_new_thing');
await c.postRaw('omnia/some_new_thing', { foo: 'bar' });