Polymesh REST API

Back End Β· WEB 3.0

Visit project
TypeScriptNestJSPostgresSQL

Responsibilities & Contributions

API & SDK Integration

Designed and extended RESTful API surfaces that expose Polymesh SDK and on-chain functionality in a stable, integration-friendly form. Focused on translating complex SDK primitives into predictable, externally consumable APIs while preserving correctness and safety.

Worked closely with evolving Polymesh SDK behavior to align REST-layer functionality with protocol capabilities, identifying gaps, inconsistencies, and unsafe response patterns during integration.

Prioritized data correctness, clear response contracts, and robust error handling to ensure reliable behavior for external integrators and downstream services.

Platform Stability & Backward Compatibility

Led and executed Polymesh SDK version upgrades within the REST API, including identifying and mitigating SDK-induced failure modes (e.g. infinite-loop behavior and unstable instruction execution paths).

Preserved backward compatibility by carefully managing behavioral changes introduced by SDK updates and reverting features when response shapes or side effects proved unsafe for existing consumers.

Acted as a stabilization layer between SDK evolution and production API usage, reducing integration risk for clients.

Authorization & Asset Administration

Designed and implemented asset permission group management capabilities, including permission group creation and modification, agent assignment and removal, abdication flows, and permission checks by DID.

Exposed agent discovery and permission-validation endpoints, enabling issuer and compliance tooling to rely on REST-based workflows rather than direct SDK integration.

Strengthened enterprise-grade authorization models across assets and identities, supporting institutional compliance requirements.

Transfer Restrictions & Compliance

Implemented full lifecycle support for asset transfer restrictions, including querying, adding, updating, and removing restrictions via REST.

Performed follow-up stabilization to address edge cases discovered during real usage, ensuring consistent behavior aligned with SDK and on-chain expectations.

Enabled compliance-driven asset configuration without requiring integrators to manage low-level SDK complexity.

Distributions, Checkpoints & Scheduling

Added REST-level visibility into dividend and distribution workflows, including endpoints for eligible distributions per DID and distribution payment history.

Implemented checkpoint- and schedule-related functionality, including:

  • Retrieving checkpoints per schedule
  • Exposing schedule complexity limits and period-based complexity calculations

Improved transparency and operational safety for high-volume distribution and scheduling workflows.

Settlement & Instruction Handling

Enhanced settlement instruction ergonomics by:

  • Making venueId optional during instruction creation
  • Implementing venue filtering capabilities

Explored richer instruction response data (e.g. instruction legs), identified SDK or downstream compatibility risks, and deliberately reverted changes to preserve API stability.

Demonstrated disciplined rollback and risk-aware decision-making when new behavior conflicted with established contracts.

Network & Protocol Metadata

Exposed protocol- and network-level metadata through REST, including:

  • Protocol fees
  • Treasury balance
  • Network and middleware metadata
  • Chain statistics

Reduced the need for integrators to query on-chain data directly via the SDK for common operational and informational use cases.

Developer Experience & Maintainability

Improved API maintainability and correctness through:

  • Swagger annotation fixes
  • DTO standardization and validation
  • Routing order corrections
  • Stricter type transformation enforcement

Contributed to clearer alignment and transparency between SDK, in-chain, and REST-layer capabilities, helping integrators understand feature availability and limitations across the stack.

Results & Impact

  • Improved the stability and predictability of Polymesh REST API behavior amid ongoing SDK evolution.
  • Reduced integration risk for external consumers by acting as a safety and compatibility layer over SDK changes.
  • Enabled issuer, compliance, and settlement workflows to be built using REST without requiring deep SDK expertise.
  • Contributed to long-term platform reliability through stabilization, rollback discipline, and integration-focused design.