emoji-react-sdk
v0.1.35
Published
TypeScript SDK for on-chain emoji reactions on the Stacks blockchain — react, aggregate, query top reactions.
Maintainers
Readme
emoji-react-sdk
TypeScript SDK for on-chain emoji reactions on the Stacks blockchain — react, aggregate, query top reactions.
Install
npm install emoji-react-sdkUsage
import { buildReadOnlyUrl, parseContractId } from 'emoji-react-sdk';
const contract = parseContractId('SP20Z3WPE6PVN1B8APDQNDH5BR1AJNMR25QPCSGFT.emoji-react');
if (contract) {
const url = buildReadOnlyUrl({ contract, functionName: 'get-reaction' });
console.log(url);
}What's inside
constants— network endpoints, project-specific defaultsutils— address/contract-name validation, parsing, formatting, STX conversioncontract— read-only call URL helperstypes—Reactionand related shapes
Scripts
npm test # vitest run
npm run typecheck # tsc --noEmit
npm run lint # eslint
npm run build # tsup → dist/License
MIT
