Questions tagged [0x]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

0X Swap failing when swapping Token X for Native Currency Smart Contract Integration

i have a contract that i would like to utilize the zeroEx protocol with i am calling the qoute endpoint like this https://bsc.api.0x.org/swap/v1/quote?sellToken=...
Kay Albertus's user avatar
0 votes
0 answers
19 views

Why did 0x swap API get deprecated and what is its substitute?

0x swap API was a great project that was under active development for several years. But recently it got deprecated and no longer kept up to date. I could not find any other substitute for it on the ...
Ehsan Khodarahmi's user avatar
0 votes
1 answer
24 views

How to sign the hash of a message using EIP712?

There are many guides and online services on how to sign a message using eip712. But they all apply to messages. Now, if I already have the hash of my message, how to use MetaMask without other third ...
user2284570's user avatar
0 votes
0 answers
28 views

Execution Reverted: GS013 Error in Safe Wallet During 0x OTC Transaction

I am encountering a 'execution reverted: GS013' error when trying to execute a script that aims to fill an Over-the-Counter (OTC) transaction through Safe Wallet using the 0x protocol. This issue ...
Tiago Soriano's user avatar
0 votes
0 answers
20 views

getting reverted with reason string 'SWAP_CALL_FAILED' while trying back sell unitymeta Token

const unityMeta = '0xca861e289f04cB9C67fd6b87ca7EAFa59192f164'; const WBNB = '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c'; const params = { sellToken: unityMeta, buyToken: WBNB, ...
usama musa's user avatar
0 votes
1 answer
14 views

Verify signature result return 0x

The return signature result from signMessage method obtained is 0x. How do we handle 0x signer result from frontend? const signer = new ethers.providers.Web3Provider(provider).getSigner(); try { ...
Edwin Chen's user avatar
0 votes
0 answers
10 views

Why registerAllowedOrderSigner function doesnt work

i created a limit order. Then what I wanted is to give access to another address who can sign the order on behalf of me. I called the registerAllowedOrderSigner method from the proxy contract and ...
sayantan mondal's user avatar
1 vote
0 answers
16 views

What are those trx periodically being sent to the zero address

An example of such trx is the following (0x1c22498f94934e18b32f2fdb00d8bf091af7cd77e8aeea0191f21efc211aeebc) in particular they have a calldata which UTF-8 decoding looks like 'data:application/json,{&...
Mattiatore's user avatar
0 votes
2 answers
156 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
35 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
15 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
13 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
58 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
25 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
40 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
21 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
28 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
37 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
82 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
86 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
10 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
31 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
76 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
41 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
50 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
28 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
32 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
35 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
41 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
22 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
86 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
43 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
150 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
33 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
24 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
29 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
30 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
57 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
32 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
55 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
225 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
87 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
452 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
53 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
65 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
130 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

1
2 3 4 5
7