TypeScript SDK for PalindromeCryptoEscrow - Secure blockchain escrow with buyer/seller protection
npm install @palindromepay/sdk


A TypeScript/Node SDK for interacting with the PalindromePay escrow smart contract and subgraph, including signature flows, event utilities, token helpers, and robust error handling.
---
Full documentation available at: palindromepay.com/sdk
---
- Interact with on-chain escrow contracts using public & wallet clients
- Supports ERC20 deposits, fee calculation, and contract state queries
- Buyer, Seller, Arbiter rolesβplus dispute/resolve logic
- Meta-transaction signature helpers (EIP-712 compatible)
- Auto-release and time/maturity helpers
- Subgraph GraphQL queries to fetch and filter escrows and dispute messages
- Flexible error classes and codes for wallet/client state
- Utilities for fee calculation, token formatting, deadlines, and maturity times
- Gas estimation helpers for transaction planning
- Comprehensive state and role validation helpers
---
``bash`
npm install @palindromepay/sdk
---
`bashRun all tests
npm test
---
π Development
`bash
Install dependencies
npm installBuild the project
npm run buildClean build artifacts
npm run clean
``---
MIT License - see LICENSE file for details
---
Contributions are welcome! Please feel free to submit a Pull Request.
---
- GitHub Issues: https://github.com/palindromepay/SDKPalindromePay/issues
- Documentation: https://www.palindromepay.com/sdk