{"_id":"@dschz/polymarket-builder-signing-sdk","_rev":"3-5075249851513ba15fe88ec294d7bfb5","name":"@dschz/polymarket-builder-signing-sdk","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@dschz/polymarket-builder-signing-sdk","version":"0.1.0","author":{"name":"Daniel Sanchez","email":"dsanc89@pm.me"},"license":"MIT","_id":"@dschz/polymarket-builder-signing-sdk@0.1.0","maintainers":[{"name":"dsanc89","email":"dsanc89@icloud.com"}],"contributors":[{"url":"https://github.com/dsnchz","name":"Daniel Sanchez"},{"url":"https://github.com/JonathanAmenechi","name":"Jonathan Amenechi"}],"dist":{"shasum":"486a902a7e549e8fbf033c95e3a750a85cf6b5d5","tarball":"https://registry.npmjs.org/@dschz/polymarket-builder-signing-sdk/-/polymarket-builder-signing-sdk-0.1.0.tgz","fileCount":6,"integrity":"sha512-CiAfY0tFm+omlZOeV+DvLhzspqAQDuEsVGKKo1ICPF+5S8Bx7oR/f04kzgyPh9Ag2dmqcUrr1Tic1o8LEXstDA==","signatures":[{"sig":"MEUCIC84vY0LQ+wbnD8pYZmBGMADlGwzRI1lSwqWBqQp8JOUAiEA2AJBe+Um55F6Y9IUhNzhLj4LlgFZMJfloymitRfGFQk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12050},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"59e5b50fab088d0f164c4b2461fef6519d0b5ad4","scripts":{"lint":"eslint .","test":"bun test","build":"tsup","format":"prettier . --check","lint:fix":"eslint --fix .","test:cov":"bun test --coverage","typecheck":"tsc --noEmit","format:fix":"prettier . --write","build:watch":"tsup --watch","pkg:publish":"bun run build && changeset publish","pkg:version":"changeset version","pkg:changeset":"changeset"},"_npmUser":{"name":"dsanc89","email":"dsanc89@icloud.com"},"_npmVersion":"10.9.3","description":"Polymarket SDK for creating builder headers","directories":{},"_nodeVersion":"22.19.0","dependencies":{"axios":"^1.13.1","tslib":"^2.8.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@>=1.3.0","devDependencies":{"jiti":"2.6.1","path":"^0.12.7","tsup":"8.5.0","sinon":"^21.0.0","dotenv":"^16.0.2","eslint":"9.35.0","globals":"16.4.0","prettier":"^3.6.2","@eslint/js":"9.38.0","@types/bun":"^1.3.1","typescript":"^5.9.3","@types/node":"22.18.4","@types/sinon":"^17.0.4","@changesets/cli":"2.29.7","typescript-eslint":"8.46.2","@tsconfig/strictest":"2.0.7","eslint-plugin-simple-import-sort":"12.1.1","eslint-import-resolver-typescript":"4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/polymarket-builder-signing-sdk_0.1.0_1761862698226_0.8121267908596175","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@dschz/polymarket-builder-signing-sdk","version":"0.2.0","author":{"name":"Daniel Sanchez","email":"dsanc89@pm.me"},"license":"MIT","_id":"@dschz/polymarket-builder-signing-sdk@0.2.0","maintainers":[{"name":"dsanc89","email":"dsanc89@icloud.com"}],"contributors":[{"url":"https://github.com/dsnchz","name":"Daniel Sanchez"},{"url":"https://github.com/JonathanAmenechi","name":"Jonathan Amenechi"}],"dist":{"shasum":"1fbf59ebe060a98ade93dcc436e2ae79caf952bd","tarball":"https://registry.npmjs.org/@dschz/polymarket-builder-signing-sdk/-/polymarket-builder-signing-sdk-0.2.0.tgz","fileCount":6,"integrity":"sha512-/zX5SYOnAuOiLtydHJbIM2P4s9D5ZxEVAg2/kVOLma2su9514JNT9Zpl7eIOUil/oSNn7kUTAfccOclu12YCZQ==","signatures":[{"sig":"MEUCIQD9pC+QjBv71hfEUP8XiJsUUtMkRzRQwkCWDz+UZCbgtwIgQAmolQlfGi952/c7v3sKTCjKfWLROMvlMgpbsXniftc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12027},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"06bbec91df9e8e0451071b1b5b875cba9807f4e7","scripts":{"lint":"eslint .","test":"bun test","build":"tsup","format":"prettier . --check","lint:fix":"eslint --fix .","test:cov":"bun test --coverage","typecheck":"tsc --noEmit","format:fix":"prettier . --write","build:watch":"tsup --watch","pkg:publish":"bun run build && changeset publish","pkg:version":"changeset version","pkg:changeset":"changeset"},"_npmUser":{"name":"dsanc89","email":"dsanc89@icloud.com"},"_npmVersion":"10.9.3","description":"Polymarket SDK for creating builder headers","directories":{},"_nodeVersion":"22.19.0","dependencies":{"axios":"^1.13.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@>=1.3.0","devDependencies":{"jiti":"2.6.1","path":"^0.12.7","tsup":"8.5.0","sinon":"^21.0.0","dotenv":"^16.0.2","eslint":"9.35.0","globals":"16.4.0","prettier":"^3.6.2","@eslint/js":"9.38.0","@types/bun":"^1.3.1","typescript":"^5.9.3","@types/node":"22.18.4","@types/sinon":"^17.0.4","@changesets/cli":"2.29.7","typescript-eslint":"8.46.2","@tsconfig/strictest":"2.0.7","eslint-plugin-simple-import-sort":"12.1.1","eslint-import-resolver-typescript":"4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/polymarket-builder-signing-sdk_0.2.0_1761865505398_0.5499403892170505","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@dschz/polymarket-builder-signing-sdk","description":"Polymarket SDK for creating builder headers","version":"0.3.0","type":"module","author":{"name":"Daniel Sanchez","email":"dsanc89@pm.me"},"license":"MIT","contributors":[{"name":"Daniel Sanchez","url":"https://github.com/dsnchz"},{"name":"Jonathan Amenechi","url":"https://github.com/JonathanAmenechi"}],"main":"dist/index.js","types":"dist/index.d.ts","publishConfig":{"access":"public"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"build":"tsup","build:watch":"tsup --watch","format":"prettier . --check","format:fix":"prettier . --write","lint":"eslint .","lint:fix":"eslint --fix .","pkg:changeset":"changeset","pkg:version":"changeset version","pkg:publish":"bun run build && changeset publish","test":"bun test","test:cov":"bun test --coverage","typecheck":"tsc --noEmit"},"devDependencies":{"@changesets/cli":"2.29.7","@eslint/js":"9.38.0","@tsconfig/strictest":"2.0.7","@types/bun":"^1.3.1","@types/node":"22.18.4","@types/sinon":"^17.0.4","dotenv":"^16.0.2","eslint":"9.35.0","eslint-import-resolver-typescript":"4.4.4","eslint-plugin-simple-import-sort":"12.1.1","globals":"16.4.0","jiti":"2.6.1","path":"^0.12.7","prettier":"^3.6.2","sinon":"^21.0.0","tsup":"8.5.0","typescript":"^5.9.3","typescript-eslint":"8.46.2"},"engines":{"node":">=20.0.0"},"packageManager":"bun@>=1.3.0","_id":"@dschz/polymarket-builder-signing-sdk@0.3.0","gitHead":"a0a57354c92fccb538572f338d31fd44ad6ff9cb","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-c/agCQS22VOW88SuU83Wwu59UuGY5OZdM/xZ94KcuhJev52Q85B6Ic33nzluUOmtFy/X4rfMUBuHj2/YXo9cZw==","shasum":"2c7138eb51fcb29940589df5c8ef2dd3072804ff","tarball":"https://registry.npmjs.org/@dschz/polymarket-builder-signing-sdk/-/polymarket-builder-signing-sdk-0.3.0.tgz","fileCount":6,"unpackedSize":12501,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDKA+4Op2EJpSO4+/Qc6WPvTLZ0jCB72CIqFQnIorZNZAIgGLgIWDU5O8/UngaPFxBrSg5ORUr51au/Slep0uhUBIo="}]},"_npmUser":{"name":"dsanc89","email":"dsanc89@icloud.com"},"directories":{},"maintainers":[{"name":"dsanc89","email":"dsanc89@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/polymarket-builder-signing-sdk_0.3.0_1761877034355_0.337570257438782"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-30T22:18:18.162Z","modified":"2025-10-31T02:17:14.791Z","0.1.0":"2025-10-30T22:18:18.421Z","0.2.0":"2025-10-30T23:05:05.589Z","0.3.0":"2025-10-31T02:17:14.578Z"},"author":{"name":"Daniel Sanchez","email":"dsanc89@pm.me"},"license":"MIT","description":"Polymarket SDK for creating builder headers","contributors":[{"name":"Daniel Sanchez","url":"https://github.com/dsnchz"},{"name":"Jonathan Amenechi","url":"https://github.com/JonathanAmenechi"}],"maintainers":[{"name":"dsanc89","email":"dsanc89@icloud.com"}],"readme":"# Polymarket Builder Signing SDK (@dschz)\n\n[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)\n[![npm](https://img.shields.io/npm/v/@dschz/polymarket-builder-signing-sdk?color=blue)](https://www.npmjs.com/package/@dschz/polymarket-builder-signing-sdk)\n[![Bundle Size](https://img.shields.io/bundlephobia/minzip/@dschz/polymarket-builder-signing-sdk)](https://bundlephobia.com/package/@dschz/polymarket-builder-signing-sdk)\n[![CI](https://github.com/dsnchz/polymarket-builder-signing-sdk/actions/workflows/ci.yaml/badge.svg)](https://github.com/dsnchz/polymarket-builder-signing-sdk/actions/workflows/ci.yaml)\n\nFork of [Polymarket Builder Signing SDK](https://github.com/Polymarket/builder-signing-sdk).\n\nA TypeScript SDK for creating authenticated builder headers\n\n## Installation\n\n```bash\npnpm install @dschz/polymarket-builder-signing-sdk\n```\n\n## Quick Start\n\n```typescript\nimport { BuilderSigner } from '@dschz/polymarket-builder-signing-sdk';\n\n// Create a builder config for signing\n\n// Local\nconst builderConfig = new BuilderConfig(\n  {\n    localBuilderCreds: {\n      key: \"xxxxxxx-xxx-xxxx-xxx-xxxxxxxxx\",\n      secret: \"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\",\n      passphrase: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    },\n  },\n);\n\nconst headers = await builderConfig.generateBuilderHeaders(\n  'POST'                   // HTTP method\n  '/order',               // API endpoint path\n  '{\"marketId\": \"0x123\"}' // Request body\n);\n\n// Remote\nconst builderConfig = new BuilderConfig(\n  {\n    remoteBuilderConfig: {\n      url: remoteSignerUrl,\n      token: `${process.env.MY_AUTH_TOKEN}`\n    }\n  },\n);\n\nconst headers = await builderConfig.generateBuilderHeaders(\n  'POST'                   // HTTP method\n  '/order',               // API endpoint path\n  '{\"marketId\": \"0x123\"}' // Request body\n);\n```\n","readmeFilename":"README.md"}