This quickstart stops before
deployWithPermit(...). The final signing step proves that your app can reach API auth, validation, deployment preflight, chain/RPC context, and EIP-712 signing without performing a live write.Prerequisites
- Node.js
>=18. - A Shodai testnet API key. Create one in the Developer Portal.
- A Linea Sepolia RPC URL for
chainId: 59141. - A local package or temporary directory where you can install npm packages.
Make the first-flight script
Install the SDK and signing dependencies
viem provides the test wallet, public client, and EIP-712 signing primitives used by the SDK signing helpers.Set environment variables
RPC_URL must point at Linea Sepolia because this quickstart uses chainId: 59141.Save the example agreement
Copy the complete Use the complete JSON artifact from the example page, not an abbreviated API request body.
simple-agreement.json code block from Simple Agreement into:Completion state
You have completed this quickstart when the script prints:- a healthy API response
- an authenticated agreement list response
- template validation output for the Simple Agreement
- deployment preflight output
signatureV,signatureR, andsignatureSfromsignDeployWithPermit(...)
Continue from here
Run an end-to-end agreement workflow
Continue from first-flight readiness to deployment, signed input submission, state reads, and input history.
TypeScript client reference
Reference constructor options, methods, signing helpers, diagnostics, path helpers, and exports.
Author agreement JSON
Model terms, variables, participants, states, inputs, issuers, and transitions.
Deploy an agreement
Learn the live deployment workflow after preflight and signing readiness are working.