rune-stamp-sdk
v0.1.34
Published
TypeScript SDK for rune-style badge/stamp issuance on the Stacks blockchain — mint, verify, enumerate.
Maintainers
Readme
rune-stamp-sdk
TypeScript SDK for rune-style badge/stamp issuance on the Stacks blockchain — mint, verify, enumerate.
Install
npm install rune-stamp-sdkUsage
import { buildReadOnlyUrl, parseContractId } from 'rune-stamp-sdk';
const contract = parseContractId('SP16F6839630K5XX06KE7KVNSNMYBK89912NH6N4C.rune-stamp-a1');
if (contract) {
const url = buildReadOnlyUrl({ contract, functionName: 'get-stamp' });
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—Stampand related shapes
Scripts
npm test # vitest run
npm run typecheck # tsc --noEmit
npm run lint # eslint
npm run build # tsup → dist/License
MIT
