Skip to main content
Use Polygon OMS through Corsair: one client, typed API calls. Polygon OMS takes a key and secret pair and mints a 60-minute bearer token from them, and the plugin does the exchange for you. Create a project and an API key in the OMS dashboard, then copy the secret at creation time, because OMS shows it once and stores only a hash. Both values are stored on the account: the key as api_key and the secret as api_secret. The key picks the host: sk_sdbx_ keys go to the sandbox, which simulates every transfer, and sk_live_ keys to production. Set environment in the plugin options to override it. Things to know before money moves:
  • Two steps, not one. quotes.create prices a transfer and locks the rate for a few minutes. transactions.create accepts that quote and starts the transfer. Nothing moves until the second call, which is why the plugin marks the quote a write and the transaction destructive.
  • One amount, one side. Set the amount on the source or the destination, never both: OMS calculates the other side. The plugin rejects a call that sets both or neither before it is sent.
  • Idempotency. OMS requires an Idempotency-Key header on every non-auth POST. The plugin generates one per call; pass idempotencyKey in the input to reuse it, which is what makes a retried transfer the same attempt rather than a second one.
  • Personal data is write-only. A customer accepts birthDate, residentialAddress, ipAddress and identifying documents, and OMS never returns them. Reads show the onboarding status and, when something is outstanding, a hold.
  • Networks are names, not numbers. Pass polygon or ethereum; OMS rejects the numeric chain ids. networks.list reports what this project can actually route.
  • Balances can be negative. wallets.balance mirrors the provider, so a clawback after funds were spent reads as a negative string.
  • Webhooks. The plugin registers, reads, updates and deletes OMS webhook endpoints, including the one-time HMAC signing key from webhooks.create. It does not handle inbound deliveries.
What you get:
  • 21 typed API operations

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

List the networks this project can route
Price a USDC to USD bank payout
See the full list on the API page.

What’s next

API reference

Every polygon.api.* operation with input and output types.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.