npm.io
0.11.0 • Published 6d ago

@noya-ai/sdk

Licence
MIT
Version
0.11.0
Deps
9
Size
465 kB
Vulns
0
Weekly
217

@noya-ai/sdk

TypeScript SDK for Noya — a unified API for crypto market data, on-chain operations, prediction markets, and account/wallet management.

Install

npm install @noya-ai/sdk

Usage

import { NoyaSDK } from "@noya-ai/sdk";

// Anonymous — read-only market data
const sdk = new NoyaSDK();
const prices = await sdk.data.coingecko.price({ tokenIds: ["bitcoin"] });

// Authenticated — chain ops, prediction markets, account
const authed = new NoyaSDK({
  apiKey: process.env.NOYA_API_KEY,            // generate at https://agent.noya.ai/api-keys
  signer: { url: "https://agentic.noya.ai/signer" },
});
await authed.chain.erc20.transfer({
  chainId: 8453,
  contractAddress: "0x...",
  destination: "0x...",
  amount: "100000000",
});

Pass either apiKey or bearer (not both). Without credentials the SDK is read-only; chain/predict/account methods throw at call time. The signer option enables on-chain signing and x402 payment handling.

Surface

Namespaced: sdk.data.*, sdk.chain.*, sdk.predict.*, sdk.threads.*, sdk.portfolio.*, sdk.account.*.

Docs

Full reference and architecture live in the agentic monorepo.

License

MIT