@noya-ai/sdk
v0.9.0
Published
TypeScript SDK for [Noya](https://noya.ai) — a unified API for crypto market data, on-chain operations, prediction markets, and account/wallet management.
Readme
@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/sdkUsage
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
