包详细信息

@reservoir0x/reservoir-sdk

reservoirprotocol40.6kMIT2.5.7

An SDK that can be used in any javascript/typescript context to easily interact with Reservoir liquidity APIs

nft, reservoir, reservoir-sdk, reservoirkit

自述文件

ReservoirKit

ReservoirKit is a developer toolkit for buying, selling and managing NFTs.

Installing ReservoirKit

yarn add @reservoir0x/reservoir-kit-ui

Also make sure to install the peer dependencies required by ReservoirKit if your application doesn't already include them:

yarn add wagmi viem react react-dom

Head over to our docs to learn more.
Running into installation issues? Check out our troubleshooting guide.

更新日志

1.12.15

2.5.7

Patch Changes

  • 6a9a6b9: fix wanime address

2.5.6

Patch Changes

  • 007390a: adding anime

2.5.5

Patch Changes

  • 952d973: updating berachain explorer

2.5.4

Patch Changes

  • ed4fc30: adding berachain

2.5.3

Patch Changes

  • 42dd352: fixing monad testnet explorer

2.5.2

Patch Changes

  • 3277e54: updating abstract mainnet

2.5.1

Patch Changes

  • 97f0d90: adding monad testnet rpc

2.5.0

Minor Changes

  • f3df513: Upgrading viem and wagmi

2.4.42

Patch Changes

  • 87cd822: tweak

2.4.41

Patch Changes

  • 8916b59: feat: add Ink chain support (id: 57073)

2.4.40

Patch Changes

  • dccac49: Added Monad Testnet chain support (ID: 10143) to SDK and UI packages. Includes chain configuration, payment tokens (MON/WMON), wrapped contract details, and demo app integration.

2.4.39

Patch Changes

  • 495ac1c: add story odyssey chain support

2.4.38

Patch Changes

  • 18ff2f0: adding new block explorers for boss and zero

2.4.37

Patch Changes

  • a76f685: fixing mainnet rpc

2.4.36

Patch Changes

  • 493bf6f: fixing blast rpc url

2.4.35

Patch Changes

  • afcd970: fixing soneium rpc

2.4.34

Patch Changes

  • 7db63ef: Add Soneium chain configuration (Chain ID: 1868)

2.4.33

Patch Changes

  • 29a0710: feat(sdk,ui,demo): add Creator Testnet chain support (chain ID 4654) with native ETH and WETH token configurations, including demo app integration

2.4.32

Patch Changes

  • 707cdbf: Add game7 chain configuration

2.4.31

Patch Changes

  • ccafb5e: adding monad devnet

2.4.30

Patch Changes

  • 3806fa5: adding anime testnet

2.4.29

Patch Changes

  • 82d1a80: adding abstract mainnet

2.4.28

Patch Changes

  • 36a821d: updating explorer urls for apechain and shape

2.4.27

Patch Changes

  • 59e1d6a: adding zero testnet

2.4.26

Patch Changes

  • 88b6291: adding zero mainnet

2.4.25

Patch Changes

  • b5b3c49: updating wape address

2.4.24

Patch Changes

  • df57dc4: updating WETH address for abstract testnet

2.4.23

Patch Changes

  • 2ca4b46: Removing maxItems check

2.4.22

Patch Changes

  • 1274874: fixing b3 wrapped native currency

2.4.21

Patch Changes

  • e2a1d03: fixing shape weth address

2.4.20

Patch Changes

  • 6280bb9: Fixing cross chain purchasing of 1155 tokens when filliing from multiple orders
  • 4a7fe0b: fixing base sepolia WETH chain ID
  • 39eb10b: Skip checking tx for synced/check api if crosschain approval

2.4.19

Patch Changes

  • ce16bbd: adding flow

2.4.18

Patch Changes

  • 12c1717: updating WAPE on apechain and curtis

2.4.17

Patch Changes

  • 31f3762: updating tx syncing to be async

2.4.16

Patch Changes

  • b71da2f: Sync api types, fix marketplace-configurations/v2 exchange type

2.4.15

Patch Changes

  • 02390c4: updating refund error message

2.4.14

Patch Changes

  • 9adc2db: support for abstract testnet, minato, hychain

2.4.13

Patch Changes

  • 9e723b8: adding shape and shape sepolia

2.4.12

Patch Changes

  • 55f67f6: adding apechain

2.4.11

Patch Changes

  • 6118898: sync api types

2.4.10

Patch Changes

  • ff0433f: Include request url in APIError and fix unknown status code

2.4.9

Patch Changes

  • 9a8b493: adding b3

2.4.8

Patch Changes

  • e575a14: Sync api types

2.4.7

Patch Changes

  • 71664d9: adding forma, syncing api types

2.4.6

Patch Changes

  • 3aae35c: Fix viem public client initialization bug

2.4.5

Patch Changes

  • c3a53b6: adding boss

2.4.4

Patch Changes

  • 6da031f: Update wbera address

2.4.3

Patch Changes

  • d08dccf: Improve fallback logic for api errors
  • ee9b0e8: adding cloud and game7

2.4.2

Patch Changes

  • e46059b: updating explore attributes version

2.4.1

Patch Changes

  • 49fc944: Fix berachain definitions

2.4.0

Minor Changes

  • b9063e3: Upgrade viem and wagmi

2.3.1

Patch Changes

  • 9686ca3: fixing nebula currencies

2.3.0

Minor Changes

  • 2ad9e96: Add support for auxiliary funds

2.2.12

Patch Changes

  • 626ea97: adding flow previewnet, fixing b3 icons

2.2.11

Patch Changes

  • 057dc4d: Adding b3 testnet

2.2.10

Patch Changes

  • 4d94ea4: fixing cryptocurrencyicon nebula import

2.2.9

Patch Changes

  • e778554: Fixing buying and listing on nebula

2.2.8

Patch Changes

  • c1b0b1a: adding sei chain

2.2.7

Patch Changes

  • 16db325: Add new useUserListings hook and replace existing useListings hook in EditListingModal/CancelListingModal

2.2.6

Patch Changes

  • 18abb7c: adding ETH symbol check, removing SFUEL paymentToken for nebula

2.2.5

Patch Changes

  • 57b6b0d: Add useUserBids hook and replace EditBidModal/CancelBidModal

2.2.4

Patch Changes

  • 8f9e134: Fix validation error with new synced api integration

2.2.3

Patch Changes

  • d0bf12c: adding bitlayer

2.2.2

Patch Changes

  • ca98e56: changing nebula payment token address

2.2.1

Patch Changes

  • 4d60cb3: adding cyber

2.2.0

Minor Changes

  • 25e8677: Replace bulk transfers api with transactions/synced/v2 api

Patch Changes

  • bfb6f8f: BidModal & ListModal: Include exchange fee in feesBps calculation
  • d10c230: Adding Xai, Nebula, and Sei chains
  • 5534b08: Removing degen currencies and adding nebula as a custom chain

2.1.4

Patch Changes

  • 4ca3b81: Fix payment token balance fetching for crosschain non native currencies

2.1.3

Patch Changes

  • 7eb8fe1: Add degen chain configuration

2.1.2

Patch Changes

  • d0d6298: Fix berachain testnet url

2.1.1

Patch Changes

  • e9fd498: Sync api types

2.1.0

Minor Changes

  • 433943d: Removed deprecated chains

2.0.16

Patch Changes

  • 5a6b034: Update polygon amoy wmatic address

2.0.15

Patch Changes

  • b1bdf17: Handle reverted transactions by throwing an error after receiving receipt

2.0.14

Patch Changes

  • 432bdbb: Add garnet and remove redstone testnet
  • 00cfcfe: Update tokens/refresh api to v2
  • ff2b661: Add polygon amoy

2.0.13

Patch Changes

  • 7c556b3: Add redstone chain

2.0.12

Patch Changes

  • 2ecd779: Add berachain testnet

2.0.11

Patch Changes

  • 9c46f40: Add redstone testnet configuration

2.0.10

Patch Changes

  • 2198ecd: Add apex pop testnet configuration

2.0.9

Patch Changes

  • fd61f2b: Remove submitting transaction to solver
  • 5a0aa7f: Sync api types

2.0.8

Patch Changes

  • c2ef89f: Fix passing chainId in recursive call to executeSteps

2.0.7

Patch Changes

  • 213a434: Fix Astar WETH paymentToken

2.0.6

Patch Changes

  • 61b2d03: Added Astar ZkEVM

2.0.5

Patch Changes

  • 9d802e7: Add blast chain configuration

2.0.4

Patch Changes

  • 46c7295: Fix paymentTokens for Blast Sepolia

2.0.3

Patch Changes

  • 4bc7810: Switch apex rpc to https

2.0.2

Patch Changes

  • 96bee20: Add blast sepolia chain configuration
  • c029a8e: Add apex proof of play chain configuration

2.0.1

Patch Changes

  • cc4ec58: Allow override of AcceptBid currency

2.0.0

Major Changes

  • b7ad7a5: Upgrade viem to v2

Breaking Changes:

Make sure to upgrade peer dependency viem to 2.x.x

1.12.16

Patch Changes

  • 20f9271: Regenerate Types

Patch Changes

  • 578dd19: Upgrade SDK types

v1.12.14-SDK (2024-02-13)

  • Add property to force executeSteps to trigger signatures/transactions synchronously

v1.12.13-SDK (2024-02-07)

  • Update api types

v1.12.12-SDK (2024-02-05)

  • Add ancient8, update ancient8 testnet, sepolia base and opbnb chains

v1.12.11-SDK (2024-02-01)

  • Add context headers

v1.12.10-SDK (2024-01-19)

  • Fix polling validation for intents in sdk transaction util

v1.12.9-SDK (2024-01-12)

  • Sync Api

v1.12.8-SDK (2024-01-10)

  • Sync Api

v1.12.7-SDK (2024-01-09)

  • Merge pull request #541 from reservoirprotocol/ted/grwth-3761-implement-intent-filling-for-blur-orders 1c810b0b
  • Merge pull request #536 from reservoirprotocol/ted/grwth-3770-better-handle-price-checks-for-intent-fills a3981766

v1.12.6-SDK (2024-01-08)

  • Merge pull request #537 from reservoirprotocol/ted/grwth-3792-debug-courtyard-http-transport 57b1079c

v1.12.5-SDK (2024-01-04)

v1.12.4-SDK (2024-01-04)

v1.12.3-SDK (2023-12-21)

v1.12.2-SDK (2023-12-21)

v1.12.1-SDK (2023-12-20)

  • Merge pull request #519 from reservoirprotocol/pedro/grwth-3690-prepare-custom-params-sdk-util-function 567b6238

v1.12.0-SDK (2023-12-19)

Breaking Changes:

  • Call action onProgress now includes fees, using precheck will now return the full data object as returned from the api.

v1.11.2-SDK (2023-12-15)

v1.11.1-SDK (2023-12-14)

v1.11.0-SDK (2023-12-13)

v1.10.0-SDK (2023-12-04)

v1.9.2-SDK (2023-11-29)

  • Sync api

v1.9.1-SDK (2023-11-29)

v1.9.0-SDK (2023-11-20)

  • Fix x2y2 invalid signature when signing eip191 6bedd07e
  • Fix transfersData confirmation for sell transactions ee32fd5a
  • Sync api 59c4cf45

v1.8.6-SDK (2023-11-13)

  • Sync Api

v1.8.5-SDK (2023-11-13)

  • Marketplace fee configuration per chain 2526b707
  • Bubble up full error data when executing actions 57622109
  • Fix serialize transaction signature 34583c8b

v1.8.4-SDK (2023-11-10)

v1.8.3-SDK (2023-11-09)

  • Update cross-chain purchase error 1e42a456

v1.8.2-SDK (2023-11-08)

  • Fix serialization of tx for solver api 7ef4512a

v1.8.1-SDK (2023-11-08)

  • Update payment token names 1633bab5
  • Remove cross chain payment tokens from defaults 239ebf93

v1.8.0-SDK (2023-11-08)

  • Fix transaction polling interval when signature step 37cbbd04
  • Sync api and add gasCost to CollectModal 575285ec

v1.7.1-SDK (2023-11-07)

  • Fix error message for crosschain transactions 551b721f
  • Configurable polling interval for transaction fb7fe63b
  • Improve crosschain transaction failure error handling ba2c9736
  • Sync Api

v1.7.0-SDK (2023-11-03)

  • Cross Chain Transactions 54beebcd
  • Standardize APIError by extending error and adding custom props 34ce97f2
  • Fix issue with transaction detection for IERC2771 559bf563
  • Sync api 60b9557c

v1.6.1-SDK (2023-11-02)

  • Sync api
  • Fix issue with transaction detection for IERC2771 559bf563

v1.6.0-SDK (2023-10-30)

  • Upgrade wagmi to v~1.4.3 and viem to v~1.16.3 38611577

v1.5.4-SDK (2023-10-27)

v1.5.3-SDK (2023-10-19)

v1.5.2-SDK (2023-10-12)

v1.5.1-SDK (2023-10-05)

  • Sync api 39a0cff0
  • Improve error handling across all modals cc35a1cc
  • Improve transaction observability to reduce dependency on RPC 9347f698

v1.5.0-SDK (2023-10-04)

  • ReservoirChains prebundled configuration e619f299

Breaking Change Migrations:

  • apiKey moved to root configuration object, no longer required on every chain configuration.

v1.4.6-SDK (2023-10-02)

v1.4.5-SDK (2023-09-25)

v1.4.4-SDK (2023-09-21)

  • Improve the way we handle a cancelled transaction 5c9d70c7
  • Remove unnecessary customChains that are now included in viem/wagmi b5cdaf47

v1.4.3-SDK (2023-09-18)

  • Use locally scoped axios instance d1f32c4

v1.4.2-SDK (2023-09-07)

v1.4.1-SDK (2023-08-31)

  • Sync api 8003a5a
  • Loosen comparison when searching for a chain via id 16a8e98

v1.4.0-SDK (2023-08-30)

  • Setup different exports based on the import flavor ba5608d

v1.3.1-SDK (2023-08-30)

  • Add bounty referrer global parameter for purchasing 82efe58

v1.3.0-SDK (2023-08-28)

v1.2.2-SDK (2023-08-25)

v1.2.1-SDK (2023-08-22)

  • Improve error message handling for network errors 8ff5b75

v1.2.0-SDK (2023-08-21)

  • Improve accuracy when checking expected price by using raw amount 1cd1944

v1.1.24-SDK (2023-08-03)

  • Upgrade to typescript v5
  • Sync api
  • Improve object typings 2d0bc5d

v1.1.23-SDK (2023-07-31)

v1.1.22-SDK (2023-07-28)

v1.1.21-SDK (2023-07-28)

  • Add linea chain details for wrapped contract b77abfd

v1.1.20-SDK (2023-07-25)

  • Support passing in custom RPC 79ebe6b

v1.1.19-SDK (2023-07-21)

  • Add arbitrum nova to custom chains 2af44cf

v1.1.18-SDK (2023-07-18)

  • Improve error refresh logic when buying/selling 0fe4d1d
  • Strip additional slashes from chain base urls 55a3a59

v1.1.17-SDK (2023-07-17)

v1.1.16-SDK (2023-07-14)

v1.1.15-SDK (2023-07-05)

  • Update sdk to poll bulk transfer api 808a4c1

v1.1.14-SDK (2023-07-03)

v1.1.13-SDK (2023-06-29)

  • Support supplying a gas limit 2b0cf0d
  • Fix issue with viemWallet adapter not properly finding zora chain e4165a5

v1.1.12-SDK (2023-06-28)

v1.1.11-SDK (2023-06-27)

v1.1.10-SDK (2023-06-22)

  • Add ethers adapter 2023-06-16
  • Add Viem adapter and refactor to normalize wallet clients d644470

v1.1.9-SDK (2023-06-21)

  • Add custom chains to fix zora chain transaction detection 4ae8067

v1.1.8-SDK (2023-06-20)

v1.1.7-SDK (2023-06-20)

v1.1.6-SDK (2023-06-16)

  • Post results to execute results when signing transactions 62a347f

v1.1.5-SDK (2023-06-13)

v1.1.4-SDK (2023-06-12)

v1.1.3-SDK (2023-06-12)

  • Fix value being undefined when trying to submit transaction 4894bab

v1.1.2-SDK (2023-06-09)

  • Extend support for local accounts 1e5de9f

v1.1.1-SDK (2023-06-08)

  • fix sendTransaction to allow privateKeyAccounts 5cdeb4e

v1.1.0-SDK (2023-06-08)

  • Strip out flagged status api calls 9afae7f

v1.0.2-SDK (2023-06-07)

  • Handle sweep price changes 4955f8c

v1.0.1-SDK (2023-06-06)

  • Remove all opensea api methods and hooks 3d131a5

v1.0.0-SDK (2023-06-01)

  • Replace useTokens with execute/buy precheck 8948876
  • Update buyToken with precheck logic 0e55942
  • Allow overriding chain when triggering SDK actions 4e01f24
  • Moved viem client to executeSteps aa6a6fd
  • Sync api 09afad4

v0.11.0-SDK (2023-05-30)

  • Add block number to error log 29d345e

v0.10.7-SDK (2023-05-27)

  • Merge pull request #244 from reservoirprotocol/pedro/grwth-2551-support-batch-selling-in-rk 48d2ba4
  • Revert back to importing allChains from viem 47696f3
  • Got speeding up a transaction to work f2aedb1

v0.10.6-SDK (2023-05-23)

  • Merge pull request #251 from reservoirprotocol/armando/grwth-2747-add-hook-for-activity-search 7acbc47
  • Merge pull request #238 from reservoirprotocol/armando/grwth-2582-use-opensea-testnet-api b8023c0
  • feat: Sync APIs af5529a
  • Fixed signTypedData in executeSteps 2023-05-22
  • fix: add data to sendTransaction 98e9e26
  • Fix http url error 53a1c73
  • moved wagmi to peer dependencies 2023-05-16
  • attempting to fix build errors 52ec0f9
  • wip ffbdcaf
  • Switch sdk to viem d35f183
  • wip batch accepting bids dac02e1
  • feat: Resolve review de5cc74
  • feat: Add overriding 86e476b
  • feat: Small improvement ed45401
  • feat: Hardcode chain value f2ef440
  • feat: Use testnet api on goerli ee898e0

v0.10.5-SDK (2023-05-18)

v0.10.4-SDK (2023-05-16)

v0.10.3-SDK (2023-05-15)

v0.10.2-SDK (2023-05-09)

v0.10.1-SDK (2023-05-05)

v0.10.0-SDK (2023-05-05)

  • [BREAKING] Fix reserved keyword typescript errors with default chain type (changed to active) f93eea0
  • Fix: Only validate sales if the step has an id of sale e9ee4aa

v0.9.3-SDK (2023-05-02)

  • Sync API Types

v0.9.2-SDK (2023-04-28)

  • Show a warning when using deprecated APIs c6bf13d
  • Sync API types 04f7435

v0.9.1-SDK (2023-04-19)

v0.9.0-SDK (2023-04-17)

  • feat: syncing api types for opensea_verification_status b2be3f7
  • Notification emitter 1e2eb52
  • Displaying steps in the cart 7d58d3e

v0.8.0-SDK (2023-04-12)

  • Add sales data to step item 1dd82b7
  • Safely handle transactions being sped up and replaced b1f406b
  • Added missing setState to execute steps 1e48ab6
  • Updated executeSteps fixed error ux

v0.7.3-SDK (2023-04-06)

v0.7.2-SDK (2023-04-04)

  • Sync api 6c80b4c
  • Fix buyToken method 2023-04-04
  • Added new marketplace api to dynamically calculate the marketplace fee 6dadd2f
  • Sync api 9db0e0a
  • fix: bugs in the executeSteps parallelization changes 00677ef
  • Parallelize step items 2023-03-31

v0.7.1-SDK (2023-04-03)

  • Fix buyToken method regression, refresh token not triggered when buying a token that fails to be purchased 2023-04-04

  • Sync api 6f68c95

v0.7.0-SDK (2023-03-23)

  • Upgrade cancelOrder action to use v3 api 73ab41f
  • [BREAKING] Change the StepData type to include batched orderIds and crossPostingOrderId d3d49d5
  • Advanced sdk logging' 3773fda
  • Expose crosspost listing id 7f6fb52
  • update api.ts 8111c95

v0.6.5-SDK (2023-03-21)

  • Sync Api eb9ddfd

  • fix: removing space from top of changelog and fixing package.json version:update de1aea7

v0.6.4-SDK (2023-03-15)

  • Fix mixed currency quote handling to support converted Buy-In quotes 6ada9e6
  • feat: adding logic to add git tags on version release and receive tag info in changelog generator 74fcca9

v0.6.3-SDK (2023-03-10)

  • Update progress when step items are dynamically fetched bcd789b

v0.6.2-SDK (2023-03-08)

  • Add oracle support to list modal cd3e456

v0.6.1-SDK (2023-03-03)

  • Fix empty source string passed when accepting an order 8f99333

v0.6.0-SDK (2023-03-02)

  • Resolve conflicts c111a94
  • fix: Remove autofill from window location a802631
  • fix: set source to undefined instead of an empty string d2cbd22

v0.5.1-SDK (2023-02-28)

  • Fix BidModal net amount not in the same currency as bid amount 3dad8df

v0.5.0-SDK (2023-02-23)

  • Upgrade execute/sell and execute/buy to v7 1a4388a
  • Upgrade to execute/bid v5 e5c9a0b
  • Upgrade to execute/list v5 c0aad51

v0.4.0-SDK (2023-02-15)

  • Sync api f08021d
  • Merge pull request #154 from reservoirprotocol/pedro/grwth-1940-hooks-configured-with-dynamic-reservoir e93f7a5
  • Fix inline parameter docs d7a7d16

v0.3.7-SDK (2023-02-15)

  • Tweak copy, enlarge cart popover empty state 10a18a2
  • [BREAKING]: chain configuration overhaul 5214394
  • Merge pull request #151 from reservoirprotocol/pedro/grwth-2014-maximum-transaction-detection-attempts c59b624

v0.3.6-SDK (2023-02-09)

  • Update sdk types d00b2a5
  • Merge pull request #147 from reservoirprotocol/ted/grwth-1949-allow-overriding-taker-in-sdk-actions 7ff3029
  • Add maximum attempts logic when detecting transaction ingestion 2a5d525
  • Add dynamic pricing, refactor to have a simpler interface 5418e70
  • Allow overriding taker in SDK actions 3871a31

v0.3.5-SDK (2023-01-30)

v0.3.4-SDK (2023-01-20)

  • Merge pull request #136 from reservoirprotocol/pedro/grwth-1678-acceptbid-modal-price-change-update 0c71239
  • update price mismatch copy 84a04e9
  • Update error copy for price mismatch f1086c9

v0.3.3-SDK (2023-01-12)

v0.3.2-SDK (2023-01-03)

  • Fix alternative type enum array 2d9ce57

v0.3.1-SDK (2023-01-03)

  • Fix array type transformations f92f574

v0.3.0-SDK (2023-01-03)

  • Sync API and add script to support parameters with simple x-alternatives types 784ef4d
  • Merge pull request #122 from reservoirprotocol/pedro/res-1638-rk-simulate-top-bid-if-accepting-offer f92b606
  • Merge pull request #120 from reservoirprotocol/pedro/res-1664-rk-set-global-marketplace-fees-if-no 1e7c2b4
  • Simulate top bid if acceptOffer action fails df3f63b
  • Set global marketplace fee when no orderbook is passed, assuming it will be treated as reservoir on the backend 7c2fd67
  • Fix opensea flagged check for contract ranges ecfe971

v0.2.6-SDK (2022-12-28)

  • Rename reservoir-kit-client to reservoir-sdk 5591309
  • Rename client-sdk to reservoir-kit-core, rename reservoir-kit to reservoir-kit-ui 6f57826
  • Add automated royalty fees global option to the client sdk 3a638cf
  • Mono repo setup cd7043b