Installation
v3.0.11The SDK is served from the BetChain registry under the @softconstruct scope. Sign in via Get access, copy your license key from your account page, configure an authenticated .npmrc, then install — one package covers the Swarm, Casino and Content surfaces.
Prerequisites
Private registry setup
The package is not on the public npm registry. Point the @softconstruct scope at the BetChain registry and authenticate with your license key.
.npmrc at your project rootCopy your key from your account page — one key authenticates the install, the MCP and the Flutter pub registry — then reference it through an environment variable so it never lands in your repository.
@softconstruct:registry=https://sdk.betconstruct.com/npm
//sdk.betconstruct.com/npm/:_authToken=${BETCHAIN_LICENSE_KEY}Keep .npmrc in .gitignore, or commit only the registry line and inject the key from your CI secret store.
Install
npm install @softconstruct/betchain-core-client
Verify your installation
Confirm the package resolved from the private registry at the version you expect.
npm ls @softconstruct/betchain-core-client
[email protected] └── @softconstruct/[email protected]
Update
v1 to v2 migrationUpdate to the latest patch or minor release. Major upgrades are covered by the migration guide.
npm update @softconstruct/betchain-core-client
Connect the MCP & install the Skill (optional)
Give your AI assistant live, correct SDK reference (MCP) and the BetChain build playbook (Skill). Both use the same license key — no extra credentials.
claude mcp add --transport http betchain https://sdk.betconstruct.com/mcp \
--header "Authorization: Bearer ${BETCHAIN_LICENSE_KEY}"BETCHAIN_LICENSE_KEY as the package install.Troubleshooting
sdk.betconstruct.com/npm.