Skip to content

Conversation

@ryanio
Copy link
Collaborator

@ryanio ryanio commented Nov 26, 2025

Summary

Add includeOptionalCreatorFees parameter to fulfill offer and fulfill listing endpoints.

Description

When set to true, optional creator fees will be included in the fulfillment. If creator fees are already required, this is a no-op. Defaults to false.

Changes

  • Add includeOptionalCreatorFees param to getFulfillListingPayload / getFulfillOfferPayload in src/orders/utils.ts
  • Add includeOptionalCreatorFees param to generateFulfillmentData in src/api/orders.ts and src/api/api.ts
  • Add includeOptionalCreatorFees param to fulfillOrder in src/sdk/fulfillment.ts and src/sdk.ts
  • Update tests to cover new parameter

Usage

await sdk.fulfillOrder({
  order,
  accountAddress,
  includeOptionalCreatorFees: true, // Include optional creator fees
});

Testing

  • All existing tests pass
  • Added new tests for the parameter in test/orders/utils.spec.ts

Add includeOptionalCreatorFees parameter to fulfill offer and fulfill listing
endpoints. When set to true, optional creator fees will be included in the
fulfillment. If creator fees are already required, this is a no-op.
Defaults to false.

Changes:
- Add includeOptionalCreatorFees param to getFulfillListingPayload/getFulfillOfferPayload
- Add includeOptionalCreatorFees param to generateFulfillmentData in OrdersAPI and OpenSeaAPI
- Add includeOptionalCreatorFees param to fulfillOrder in FulfillmentManager and OpenSeaSDK
- Update tests to cover new parameter
@ryanio ryanio merged commit 36e8605 into main Nov 27, 2025
8 checks passed
@ryanio ryanio deleted the feat/include-optional-creator-fees branch November 27, 2025 19:27
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.

2 participants