🐺 Starknet TypeScript types 🚀 definitions for Starknet projects
RPC 0.9 - latest (Starknet 0.14)
npm i @starknet-io/types-js
RPC 0.8 - previous (Starknet 0.13)
npm i @starknet-io/types-js@0.8.4
// type import
import type { SomeApiType } from '@starknet-io/types-js';
// or entire namespace import
import { API } from '@starknet-io/types-js';
Wallet API Wallet JSON RPC Specification
// type import
import type { SomeWalletApiType } from '@starknet-io/types-js';
// or entire namespace import
import { WALLET_API } from '@starknet-io/types-js';
// type import
import type { TypedData } from '@starknet-io/types-js';
// namespace import
import { PAYMASTER_API } from '@starknet-io/types-js';
MAJOR and MINOR version of this package follows starknet-spec semantic versioning. The PATCH version can diverge based on the bug fixes.
Ex. Starknet types-js v0.7 == Starknet Spec v0.7
To prevent auto update of the minor, meaning significant RPC JSON specification change use fixed or patch range ex. ~0.9.0
npm run build
npm run lint
This repository is licensed under the MIT License, see LICENSE for more information.