Skip to content

feat(api): add pricing_currencies support and auto-resolve payment tokens#1895

Merged
ryanio merged 1 commit intomainfrom
feat/pricing-currencies
Feb 11, 2026
Merged

feat(api): add pricing_currencies support and auto-resolve payment tokens#1895
ryanio merged 1 commit intomainfrom
feat/pricing-currencies

Conversation

@ryanio
Copy link
Collaborator

@ryanio ryanio commented Feb 11, 2026

Summary

  • Replace paymentTokens array on OpenSeaCollection with pricingCurrencies (listingCurrency + offerCurrency) matching the new API response shape
  • Add resolvePaymentToken() helper that auto-resolves payment tokens from collection pricing currencies or chain defaults
  • Remove paymentTokenAddress from all public SDK methods — payment tokens are now fully automatic

Test plan

  • npm run lint passes (type-check, prettier, eslint)
  • All 581 unit tests pass
  • New tests for pricingCurrenciesFromJSON conversion (full, null, partial)
  • New tests for token resolution priority (collection currency > chain default)
  • New tests for collection offer with auto-resolved payment token

🤖 Generated with Claude Code

@ryanio ryanio force-pushed the feat/pricing-currencies branch 2 times, most recently from 7b8d955 to 2c5b6f7 Compare February 11, 2026 23:46
…kens

Replace the payment_tokens array on collections with pricing_currencies
(listing_currency + offer_currency). Payment tokens are now resolved
automatically from the collection's pricing currencies or chain defaults,
removing the need for users to specify paymentTokenAddress.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@ryanio ryanio force-pushed the feat/pricing-currencies branch from 2c5b6f7 to f45f83b Compare February 11, 2026 23:48
@ryanio ryanio merged commit 47f4d5e into main Feb 11, 2026
7 checks passed
@ryanio ryanio deleted the feat/pricing-currencies branch February 11, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant