Questions tagged [0x]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
4 views

Batch Token Swap using 0x

I'm trying to make a telegram bot that sells all the tokens available on a wallet using Ox API. In order to automate the process with only command, I'm okay with adding the private key to the script. ...
Liju Thomas's user avatar
0 votes
1 answer
17 views

How to subscribe to swap events for 0x protocol?

I'm building an nft marketplace and I'm getting the data from reservoir. I have built swap/trade functionality using 0x on my marketplace. I want to now subscribe to swap events on my marketplace. Is ...
Nik's user avatar
  • 1
0 votes
0 answers
9 views

0x Swap API Is there a recommended approach for handling these error responses uniformly?

Subject: Assistance Request for 0x Integration Description: Hello 0x Support Team, I hope this message finds you well. I am currently in the process of integrating the 0x API into my project, and I've ...
zg z's user avatar
  • 1
0 votes
0 answers
7 views

does 0xlabs work with all tokens?

Can I use API to make a dapp that lets users buy low mcap tokens? ATM I only get results for tokens like DAI, USDT, ETH. I would've thought if it aggregates uniswap, it'll aggregate any token that's ...
user125992's user avatar
1 vote
1 answer
42 views

Quote from 0x API endpoint feeRecipientTradeSurplus parameter not doing anything?

The documentation for the 0x API "quote" endpoint indicates that adding a feeRecipientTradeSurplus parameter to the query should generate a transaction where any "trade surplus fees&...
MidnightLightning's user avatar
0 votes
0 answers
20 views

0x TransformERC20 WalletExecuteDelegateCallFailedError

During simple swap with transformERC20, sometime the transaction revert with IncompleteFillSellQuoteError and WalletExecuteDelegateCallFailedError. I saw on stackexchange that this issue is caused by ...
AMT AMT's user avatar
  • 11
1 vote
0 answers
22 views

0x protocol swap api not fetching liquidity from pancakeswap

I created a liquidity pool on pancakeswap for an asset pair for goerli network. I get this error when i try and fetch the price. here is the api request https://goerli.api.0x.org/swap/v1/price?...
ShisukeUrahara's user avatar
0 votes
0 answers
12 views

Facing ZIPPO_CONTEXT_INVALID error while fetching price or calling any other api on mumbai testnet

I am trying to call this endpoint on mumbai testnet using 0x protocol and getting the error . { "code": 100, "reason": "Validation Failed", "validationErrors": [...
ShisukeUrahara's user avatar
0 votes
0 answers
26 views

Problem with 0x Protocol API

Is it possible to specify the Maker address of the RFQ order by using get-swap-v1-quote in 0xapi, because I want to trade the order through the specified maker address
Aizen Brown's user avatar
1 vote
0 answers
30 views

Decode FillQuoteTransformer data in 0x Protocol

I'm trying to decode FillQuoteTransformer input data for 0x protocol. I'm able to decode other transformer very well but am stuck with this one. It does technically decode the data but I'm not sure ...
Nischit Pradhan's user avatar
2 votes
1 answer
62 views

`ZIPPO_CONTEXT_INVALID` error when querying 0x goerli swap api quote endpoint

When querying the following endpoint and parameters: https://goerli.api.0x.org/swap/v1/quote?buyToken=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&sellAmount=1000000000000&sellToken=...
Luckydev's user avatar
2 votes
0 answers
68 views

ZIPPO_CONTEXT_INVALID error when querying 0x mumbai api quote endpoint

When querying the following endpoint and parameters: https://mumbai.api.0x.org/swap/v1/quote?sellToken=0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa&buyToken=...
TCusi's user avatar
  • 21
0 votes
0 answers
9 views

Invalid token combination - Arbitrum

Making a quote request on arbitrum request: https://arbitrum.api.0x.org/swap/v1/quote?sellToken=USDC&buyToken=UNI&buyAmount=1000000&includedSources=GMX I get invalid token combination as ...
Weber Kanga's user avatar
0 votes
1 answer
28 views

Too few ERC721 Orders on 0x v4 Exchange

I'm trying to grab information about NFT-to-ERC20 swaps conducted over 0x V4 (on Ethereum). My initial intention was to read ERC321OrderFilled events from https://etherscan.io/address/...
Andrey G's user avatar
2 votes
1 answer
30 views

CORS Policy Blocking Axios Request with 0x-api-key Header to 0x API on Goerli Network

I'm currently working on a project where I use the 0x API on the Goerli network to swap tokens. I'm making an HTTP GET request using axios from a web application served from http://localhost:3000. ...
Kyle Noll's user avatar
0 votes
0 answers
25 views

BNB Swapping using 0x API. Using WBNB, BNB or alternatively?

I am currently developing a service that uses the 0x API to swap tokens on the Binance Smart Chain (BSC). I am trying to enable swaps that involve BNB, the native token of BSC. (For example: sell BNB, ...
gruel's user avatar
  • 1
0 votes
1 answer
34 views

execution reverted 0x contract on goerli for swap but every transaction fails while giving me the error? although tx object is fine

i am getting the same error on every transaction and its on goelri network, furthermore not supoorting much of pairs. Attaching the image for reference
Muhammad ahmed's user avatar
1 vote
0 answers
25 views

0x ExchangeProxy addresses point to different implementations on Ethereum and Polygon

Why is it that on ethereum the 0xDef1C0ded9bec7F1a1670819833240f027b25EfF contract is a ERC1155OrdersFeature and on Polygon it is a ERC721OrdersFeature? Does is mean that there is no ERC1155 support ...
AFMeirelles's user avatar
0 votes
1 answer
30 views

Does 0x still have the condensed RFQ order type, and if so where is its structure defined?

I am looking into the 0x docs at the moment, and get a 404 error when attempting to view the RFQ order type structure in the cheat sheet section. Where can I find this order type's struct? Thanks!
James's user avatar
  • 1
0 votes
0 answers
32 views

[0x https://bsc.api.0x.org/swap/v1/quote? and MultiHop

i'm trying to swap two token on BSC WBNB for BUSD or else with https://bsc.api.0x.org/swap/v1/quote? . All transactions work fine when 0x selected a simple DEX or Multi DEX but failed when 0x ...
fran6coin's user avatar
0 votes
1 answer
36 views

I reported an error during contract interaction

This is my method of obtaining the signer async function getSigner() { if (window.ethereum) { await window.ethereum.enable() provider = new ethers.providers.Web3Provider(window.ethereum) // console....
eae's user avatar
  • 1
0 votes
0 answers
20 views

Function Visibility specifiers during inheritance

when am overriding a function in solidity must my child function have the same visibility as the parent function? can the parent function be public and the child function be internal
Emmanuel Anah's user avatar
0 votes
0 answers
70 views

0x API key in Client-Side dapp

From the docs, getting started section: "Starting in June 2023, all API requests without an API key will return an error. Visit 0x Dashboard to get your API key." "This key is unique ...
paro-paro's user avatar
0 votes
1 answer
39 views

"Uni::transferFrom: transfer amount exceeds spender allowance" code: 105

I get this error when i'm trying to get a quote for uni to weth swap. https://goerli.api.0x.org/swap/v1/quote?sellToken=0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984&buyToken=...
Samuel Paintsil's user avatar
0 votes
2 answers
107 views

0xapi swap Asking for a quote for code: 111, reason: 'Gas estimation failed'

const response= await fetch(https://api.0x.org/swap/v1/quote?sellToken=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&buyToken=0x6b175474e89094c44da98b954eedeac495271d0f&sellAmount=100&...
Chinh's user avatar
  • 1
0 votes
0 answers
30 views

Matic address for polygon.api.0x.org/swap/v1/quote

Good morning, I use the API of 0x and more precisely this route:https://polygon.api.0x.org/swap/v1/quote I do not understand why we must use the address ...
RiverLuck's user avatar
0 votes
0 answers
19 views

Trying to use Utils from "@0x/protocol-utils" but it gives undefined

I'm trying to use utils for signing a transaction for sellOrder of ERC721<->ERC20 as instructed here - https://protocol.0x.org/en/latest/basics/orders.html#how-to-sign import utils from '@0x/...
Ashish Mittal's user avatar
0 votes
0 answers
26 views

Error:"SWAP_CALL_FAILED" while using fillQuote function in 0x

Hi I am trying to swap tokens using 0x. I try to use fillQuote funtion for swapping from fill the input from API of 0x but I am getting Error: VM Exception while processing transaction: reverted with ...
CHITRANSHU VARSHNEY's user avatar
1 vote
0 answers
46 views

CORS Issue with the /quote 0x API endpoint

I'm a new web2 fullstack web dev trying to get his feet in web3 and i've tried to create my first web3 dApp. For the profile section and displaying a users' NFT and tokens balances I easily managed my ...
GetMoustache's user avatar
1 vote
1 answer
28 views

0x swap Expected quote.orders to conform to schema /signedOrdersSchema

Hi i should like to know if the fonction "swapQuoteConsumer.executeSwapQuoteOrThrowAsync(quote,{opt})" is depreciated in 0x protocol V4 or not ? i have a perdsistent "error Expected ...
AMT AMT's user avatar
  • 11
0 votes
0 answers
51 views

Error with 0x exchange proxy

I'm now trying to swap with 0x exchange proxy on bsc chain. I used the 0x api to generate the calldata and passed it to the exchange proxy ( 0xdef1c0ded9bec7f1a1670819833240f027b25eff) and it results ...
Joshua's user avatar
  • 1
0 votes
0 answers
30 views

How does the buyAmount in response change when setting enableSlippageProtection in a 0x Swap request?

According to the docs (https://docs.0x.org/0x-swap-api/advanced-topics/slippage-protection#response-changes), when enableSlippageProtection is not false, the buyAmount & price returned will factor ...
Maanas O T's user avatar
0 votes
0 answers
45 views

How to get 0x api description in JSON of each network?

Is that possible to get full JSON description of 0x API for each network similar to One Inch openApi https://api.1inch.io/swagger/ethereum-json? Probably you have a URL not for separated requests?
Alina Babenko's user avatar
0 votes
0 answers
51 views

Receiving SenderNotAuthorizedError error while making 0x swap

I am trying to recreate swap with 0x API. I am trying to swap WETH, which I have in my wallet Here is my swap code async function getQuote(account){ console.log("Getting Quote"); // if only &...
NykodymB's user avatar
1 vote
1 answer
152 views

Call Requests Limit

I made a bot swap on bsc network using 1inch 0x and para swap.. everything is great except one thing which is Call requests I can’t make call every 1 sec for more than 1 token when make 2 tokens my ip ...
Nashwan Salah's user avatar
1 vote
1 answer
77 views

0x swap api gas is doubled when adding feeRecipient and buyTokenPercentageFee

I would like to collect fees on trade using 0x API. But the gas in the quote response is doubled or more when adding feeRecipient and buyTokenPercentageFee which doubles the gas price users are paying....
mtx dev's user avatar
  • 11
1 vote
3 answers
415 views

Get the token id from 0x number

How can I use ethers.js to get the token id (34797) from this 0x number? 0x0000000000000000000000000000000000000000000000000000000000034797 I'm not sure which util to use from ethers.js I've looked ...
jinsley8's user avatar
0 votes
0 answers
51 views

ZRX staking was my goal on this website: https://www.0x.org/zrx/vote and from my Metamask wallet

I have question! I just wanted to stake my ZRX tokens on ETH chain from my Metamask and went to this website: https://www.0x.org/zrx/vote sent some little fee and now I can not see anymore my tokens ...
Ivicagrozni's user avatar
0 votes
1 answer
62 views

[0x End Point API https://bsc.api.0x.org/swap/v1/quote?

where find the list of token available on API EndPoint https://bsc.api.0x.org/swap/v1/quote? When i'm trying to quote with https://bsc.api.0x.org/swap/v1/quote? all is ok for pair 'BUSD-WBNB', 'BUSD-...
fran6coin's user avatar
0 votes
1 answer
117 views

How to identify valid token pairs on 0x

I am trying to use 0x for a project and I am getting a lot of Invalid token combination errors when trying to get price quotes. So this works (USDC / ETH): https://api.0x.org/swap/v1/quote?buyToken=...
John5544's user avatar
0 votes
0 answers
36 views

I am trying to build 0xAPI on my local environment but it occurs following errors

I followed the readme. https://github.com/0xProject/0x-api "yarn build" was succeeded but "yarn db:migrate" occurs following errors.
Smart Dev's user avatar
0 votes
0 answers
78 views

Slight MEV ETH transaction

Thorswap integrates 0x as a liquidity provider on Ethereum. A user reports getting much less than anticipated on this transaction: https://etherscan.io/tx/...
Oleg Petrov's user avatar
0 votes
1 answer
49 views

Could not find corresponding event log from 0x aggregator contract

Looking at the event log from the 0x Protocol aggregator contract ("0xdef1c0ded9bec7f1a1670819833240f027b25eff"), I could not find corresponding event to the following log topics0 "...
Shigami's user avatar
  • 26
0 votes
1 answer
200 views

Problem with 0x Protocol Goerli API

I'm trying to test the 0x quote API, ran into an issue with the Goerli endpoint. I sent a quote request to mainnet, to sell WETH and buy USDC: https://api.0x.org/swap/v1/quote?buyToken=USDC&...
Stevey's user avatar
  • 3
0 votes
1 answer
34 views

Does Taker on 0x generate only 1 tx ? (not 2, one for maker and one for taker)

I am writing a book about cryptocurrency history. I have questions about 0x, Etherdelta, and IDEX. Question 1. This is the last trading process from 0x whitepaper page 5. Taker submits the makers ...
Slowblogger's user avatar
1 vote
2 answers
60 views

Wallet Integration with 0x

We are building a decentralized wallet. There are some questions about the integration with 0x. Is there any direct way to add fee If there is any API parameters to add fee. Please share your ...
vishnu's user avatar
  • 11
0 votes
1 answer
363 views

Multicall Smart Contract: BEP20: transfer amount exceeds balance

I'm created a Smart Contract with the abilities to execute a multi call to the 0x DeFi aggregator. I already have the logic on my centralised server who checks for an arbitrage opportunity. When an ...
Pietro Lungarini's user avatar
0 votes
0 answers
44 views

0x Mumbai api orderbook is not working

I want to build an application on polygon. For testing I want to use Mumbai testnet. But orderbook api for mumbai doesn't seem to be working. But same API is working for polygon. For example https://...
muhammedea's user avatar
0 votes
0 answers
68 views

My 0x api results are wrong

HI My result of scanning with 0x Api is wrong and the results are not what shown in dexs for arbitrage from urllib.request import urlopen import requests import pandas as pd from json import loads as ...
deep machine learner's user avatar
0 votes
1 answer
553 views

Set Max Approval use big number

i am want create max approval fot approve token transaction on polygon exchange like this const maxApproval = new BigNumber(2).pow(256).minus(1); i see the documention in https://docs.0x.org/0x-api-...
Fatur Rahman's user avatar

1
2 3 4 5 6