Questions tagged [0x]
298 questions
4
votes
2 answers
0x Handling of tokens with less than 18 decimals
I am trying to create a sell limit order with an 18 decimal ERC20 token as makerToken (makerAmount = 1.5) and a 6 decimal ERC20 token as takerToken (takerAmount 1.1). The order is created but remainingFillableTakerAmount returned from the API shows…
Walodja1987
- 141
- 1
- 6
2
votes
1 answer
0x: Is it possible to fill an order from a smartcontract?
When I try to fill an order with funds from a contract I get the following generic error:
Error: Transaction:
0x1d3161cd7f318c3b0b28fc34b2c6bca0cbf4efdb3b11fcf7ec3af7c9adfd821b
exited with an error (status 0). Reason given: TRANSFER_FAILED.
…
jasper
- 689
- 6
- 21
2
votes
0 answers
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=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&sellAmount=10000000000000
I get a return json…
TCusi
- 21
- 1
2
votes
1 answer
Reducing CallData Size
I have an implementation where I'm needing to send 0x parameters (from the API) to a swap function that's being used in another function's logic.
To pass the data over a struct is being used, which is being populated with data at the time of the…
0xintegrator
- 21
- 2
1
vote
0 answers
How to customize my own 0x exchange
I would like to know how my custom ERC721 0x marketplace can be customized.
I know the FAQ has a walkthrough and I already found out how to inject my custom ERC20 token address, symbols etc. but I still have a problem replacing the logo for my…
Sandor Maraczy
- 11
- 1
1
vote
0 answers
call zeroEx.exchange.fillOrderAsync throw Error: Contract call failed (returned null)
I have created order ,but when I call fillOrderAsync encounter a error.
Contract call failed (returned null),Help me please!
fillOrder.callAsync { from: '0xe9c6f611639f1cb7b23af24a3519385f6b8d4c91',
gas: undefined,
gasPrice: undefined }…
argubaby
- 23
- 3
1
vote
0 answers
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…
Mattiatore
- 123
- 4
1
vote
1 answer
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" get sent to that specified address, rather than the…
MidnightLightning
- 2,988
- 16
- 28
1
vote
1 answer
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
- 11
- 1
1
vote
1 answer
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 quote.orders to conform to schema /signedOrdersSchema" and i don't…
AMT AMT
- 11
- 1
1
vote
2 answers
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 contact email where we can contact with you.
vishnu
- 11
- 1
1
vote
1 answer
Customize 0x API to get more details
we are testing the 0x API our goal is to get more details, like the top 5 rates along with the best rate also routing information
can anyone point me in the right direction, please
by default, it only gives the best rate and not the 2nd or 3rd best.
Abhishek Wakharkar
- 11
- 1
1
vote
1 answer
Selling tokens with fees on Uniswap
I'm attempting to sell a token (0xC5a9BC46A7dbe1c6dE493E84A18f02E70E2c5A32) with fees (5% buy and sell) using the 0x: Exchange Proxy but the transaction fails with Uniswap K. This is the url I'm using to retrieve transaction data with 99%…
samusJ3311
- 11
- 1
1
vote
1 answer
How to swap using 0x from a smart contract without using the API?
Is it possible for a smart contract to swap using 0x without receiving the calldata from outside?
I know how to make my deployed contract to swap with 0x by creating a fillQuote function and passing the data received from an HTTP API request as the…
lewa
- 11
- 3
1
vote
1 answer
Invalid orders returned from 0x orderbook endpoint?
can someone help to explain the small remainingFillableTakerAmount for the following order hash: 0x886618b8da6aa22193ddffc6cfc7d89782a16a7dea9cd698dacb82b8b7e430f9:
maker: 0x8836a16db8db1cba0890f0ee97a9926cb47b4101
makerToken:…
Walodja1987
- 141
- 1
- 6