Buy tokensCopy Pagepost deprecatedhttps://api.reservoir.tools/execute/buy/v6Recent RequestsLog in to see full request historyTimeStatusUser Agent Retrieving recent requests…LoadingLoading…Body ParamsorderIdsarray of stringsorderIdsADD stringrawOrdersarray of objectsrawOrdersADD objecttokensarray of stringsArray of tokens user is buying. Example: tokens[0]: 0x8d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63:704 tokens[1]: 0x8d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63:979tokensADD stringquantityintegerQuantity of tokens user is buying. Only compatible when buying a single ERC1155 token. Example: 5takerstringrequired^0x[a-fA-F0-9]{40}$Address of wallet filling the order. Example: 0xF296178d553C8Ec21A2fBD2c5dDa8CA9ac905A00relayerstring^0x[a-fA-F0-9]{40}$Address of wallet relaying the filling transactiononlyPathbooleanDefaults to falseIf true, only the path will be returned.truefalseforceRouterbooleanIf true, all fills will be executed through the router.truefalsecurrencystringenumCurrency to buy all listings in.0x0000000000000000000000000000000000000000Allowed:0x0000000000000000000000000000000000000000normalizeRoyaltiesbooleanDefaults to falsetruefalsepreferredOrderSourcestring^[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$|localhostIf there are multiple listings with equal best price, prefer this source over others. NOTE: if you want to fill a listing that is not the best priced, you need to pass a specific order ID.sourcestring^[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$|localhostFilling source used for attribution. Example: reservoir.marketfeesOnToparray of stringsList of fees (formatted as feeRecipient:feeAmount) to be taken when filling. Unless overridden via the currency param, the currency used for any fees on top matches the buy-in currency detected by the backend. Example: 0xF296178d553C8Ec21A2fBD2c5dDa8CA9ac905A00:1000000000000000feesOnTopADD stringpartialbooleanDefaults to falseIf true, any off-chain or on-chain errors will be skipped.truefalsemaxFeePerGasstring^[0-9]+$Optional. Set custom gas price.maxPriorityFeePerGasstring^[0-9]+$Optional. Set custom gas price.skipBalanceCheckbooleanDefaults to falseIf true, balance check will be skipped.truefalseallowInactiveOrderIdsbooleanDefaults to falseIf true, do not filter out inactive orders (only relevant for order id filtering).truefalseexcludeEOAbooleanDefaults to falseExclude orders that can only be filled by EOAs, to support filling with smart contracts.truefalsex2y2ApiKeystringOverride the X2Y2 API key used for filling.Response 200SuccessfulUpdated 9 months ago What is Reservoir NFT?Did this page help you?YesNo