Questions tagged [0x]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
360 views

0x exchange v3 debugging (execution reverted, more details inside)

I am trying to swap the erc721 token for erc20 using the 0x protocol which I deployed on the testnet. Using the following script to perform the swap: /** * Local, Data & Env imports * Exchange....
hack3r-0m's user avatar
  • 1,791
0 votes
1 answer
52 views

My conversion from Matic to Dock resulted in lost funds

I attempted a conversion of matic to dock transaction hash id is 0xea1abb0ac3fc257966bd5331cee6dbffd9d6a5a25a909392480a7b889e6613b9 Yet 99% of all my funds vanished
andrew botrous's user avatar
0 votes
1 answer
84 views

Why does my DAI limit buy not go through for USDC?

I am trying to purchase USDC using the DAI I have in Metamask but it will not fill my order. I've given Matcha permission to access my DAI, I've paid the ETH required and now I'd like to just place a ...
Richard Rincon's user avatar
0 votes
1 answer
66 views

yarn Error fast-abi repository not found

I am trying to install 0x-api on windows. On running yarn, I get the error: error D:\crypto\0x-api\node_modules\fast-abi: Command failed. response status 404 Not Found on https://github.com/0xProject/...
xKarma's user avatar
  • 11
1 vote
2 answers
304 views

Swap problem with big amounts (PancakeSwap liquidity)

I try to swap some tokens and receive BUSD. When I enter the amount 100_000 for my token, API returns the normal price. But it doesnt work when I increase this amount more then 1_000_000. All ...
user81512's user avatar
0 votes
1 answer
207 views

How to set up local 0x API testnet on dev machine?

I set up local 0x testnet as described here-- https://0x.org/docs/guides/setting-up-a-local-0x-testnet. That works great. The document also states that the local testnet is pre-setup with dummy tokens....
coffeemug's user avatar
  • 103
0 votes
0 answers
95 views

FillLimitOrder Error: Cannot read property 'then' of undefined

Can anyone help me fix the error of this code: import { BigNumber, providerUtils } from '@0x/utils'; const _0xProtocolFeeMultiplier = 70000; async function fill() { const utils = require("@0x/...
notooth's user avatar
  • 43
0 votes
2 answers
183 views

API Key isn't UUID compliant Error

I'm trying to test local 0x-api. When I do yarn test I dont get any errors. When I do yarn start or yarn db:migrate I got an error: Error: API Key isn't UUID compliant. I've only changed the .env ...
xKarma's user avatar
  • 11
0 votes
1 answer
203 views

0x Swap Failed , brownie integration

I've one error when, swapping ERC20 -> ERC20 with 0x API, the swap failed , previoulsy was getting an error when fetching from etherscan , but manage it to work by calling contract from abi with ...
Joshua Guessennd's user avatar
0 votes
1 answer
34 views

0x v3 audit report sha1 hashes

Trying to cross reference the sha1 hashes from the audit report here: https://consensys.net/diligence/audits/2019/09/0x-v3-exchange/ And the hashes I generated from the following repo at the 3.0 ...
S--'s user avatar
  • 146
0 votes
1 answer
46 views

cant view validation errors while using getOrderHash

i am trying to hash my order like this import { orderHashUtils } from '@0x/order-utils'; orderHashUtils.getOrderHash(order,1,"0x080bf510FCbF18b91105470639e9561022937712") but i am getting ...
0x0X0's user avatar
  • 1
1 vote
1 answer
69 views

is it possible to remapping directly from etherscan

I have one contract from etherscan and I'm the settings remapping one dependency on the root path that I don't own, is it possible to override it ? "remappings": [ "@0x/contracts-...
Joshua Guessennd's user avatar
0 votes
1 answer
946 views

How to calculate price impact on 0x API

I want to calculate price impact of my order on 0x API. What is the best way to get this value? This is an example quote to swap 10 BNB to Farm token. Pancakeswap shows 5% price impact for this swap. ...
M M's user avatar
  • 57
1 vote
1 answer
172 views

0x API Help: Order Routing

Our project is working to integrate order routing for the trading feature on our application, and we are exploring using the 0x API for this purpose. The design of our system is such that we intend to ...
CubanPete's user avatar
0 votes
1 answer
142 views

0x OrderBook API is not storing the orders

I want to send out 2 signed orders. I am pulling the orderBook to check for the orders and have them accessible for use. This is the way I am doing the order and signing it. The issue is that I have ...
Nikoloz's user avatar
0 votes
1 answer
275 views

How accurate are 0x gas estimations?

I'm trying to get gas estimations for a swap from 0x via 'swap/v1/quote' method, but fields gas and estimatedGas are wrong for the most of the cases. Is there any way to calculate it more properly? ...
sp41mer's user avatar
  • 92
0 votes
1 answer
100 views

0x protocol: how to make a rfq order info fetch function call?

Hi team recently I was using the package @0x/contract-wrappers to interact with 0x but now stuck at the function call, my code: const Web3 = require('web3'); const ContractWrappers = require('@0x/...
Rumble's user avatar
  • 1
0 votes
1 answer
162 views

Failed to fill orders

I used this code to fill an order, but it did not work. Can anyone help? import { BigNumber, providerUtils } from '@0x/utils'; async function fill() { const utils = require("@0x/protocol-utils&...
notooth's user avatar
  • 43
0 votes
1 answer
267 views

Failing to fill 0x quote

I'm trying to fill a quote that I get from the 0x API: const qs = createQueryString({ sellToken: 'TUSD', buyToken: 'WETH', sellAmount: BigInt(882693 * 10 ** 18) }); ..but the transaction ...
dNyrM's user avatar
  • 605
1 vote
1 answer
91 views

Are there multiple 0x order formats?

I am currently writing an arbitrage bot which fills 0x orders but something that is confusing me is that the 0x order format is not consistent within their documentation. The order message format ...
Bigbadboybob's user avatar
1 vote
1 answer
961 views

Member "concat" not found or not visible after argument-dependent lookup

I'm trying to concatenate a series of strings but I'm getting the following error: TypeError: Member "concat" not found or not visible after argument-dependent lookup in bytes storage ...
dNyrM's user avatar
  • 605
0 votes
0 answers
138 views

Unsure why my 0x transaction failed (more details inside)

I've written a simple contract tries to swap a few 0x pairs, for doing simple arbs or other 3 way trades. However, when I get the quotes from their API https://0x.org/docs/api (in serial, which takes ...
k9b's user avatar
  • 103
0 votes
1 answer
342 views

How to calculate the right amount of a token to use in 0x quote endpoint

I'm trying to use 0x to buy tokens with ETH. I'm following the sample at https://0x.org/docs/guides/swap-tokens-with-0x-api#swap-eth-for-1-dai. I got the token address, and the decimals. let's say ...
Traveling Tech Guy's user avatar
1 vote
1 answer
111 views

What is the method to send a transaction with data from solidity?

Sorry for the noob question, but Im trying to understand some definitions and clarify the limits between solidity, web3, etc. I have obtained a tx looking like the following from the 0x API: b'{"...
Guillermo's user avatar
0 votes
1 answer
33 views

Cost to cancel or change an unfilled Augur order

With the launch of Augur v2, what is the cost to cancel a previously entered order that has not yet been filled? Is this cost the same as the cost to modify the order by changing the bid, ask or ...
user6422's user avatar
0 votes
1 answer
976 views

How to decode an Ethereum transaction input of an 0x transaction

The input data is very large. I believe there are multiple functions called. Can I just hash each of the functions in the ABI, get the 6 characters and compare them to the first six characters of the ...
Apothan's user avatar
  • 11
1 vote
0 answers
104 views

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 ...
Sandor Maraczy's user avatar
0 votes
1 answer
129 views

Getting "Tokens Unavailable" in 0X instant

I have deployed both 0x-launch-kit-backend and 0x-launch-kit-frontend in my local system I can able to create a sell order. It is listed in orders I am running things in Ropsten Testnet In 0X Instant ...
Sammu Sundar's user avatar
0 votes
1 answer
465 views

how to add my custom token to 0x protocol in testnet/mainnet

I am new to the 0x protocol. Is it possible to add custom token using 0x Portal DApp?. Share any example or document. I have deployed my own exchange medium. it is running in http://localhost:3001 I ...
Sammu Sundar's user avatar
0 votes
1 answer
626 views

Converting Log Topics to int64 correctly in Go

I currently use the code below to extract the ERC721 Token ID from Transfer Event Logs: txHash := newLog.TxHash.Hex() hexString := common.BytesToAddress(newLog.Topics[3].Bytes()).Hex() flowerNum, _ :=...
P A S H's user avatar
  • 138
2 votes
1 answer
692 views

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 ...
jasper's user avatar
  • 689
0 votes
1 answer
126 views

ecSignHashAsync() giving INVALID_SIGNATURE Error

I'm trying to create an order in 0x but when I try to sign the order I get INVALID_SIGNATURE error? I'm using 0x version 2 onSubmit = async (event) => { event.preventDefault(); const { ...
Amirhosein Rajabi's user avatar
1 vote
0 answers
153 views

Is http://zrx.plus a legit site to claim my 0x exchange tokens? [closed]

Is http://zrx.plus/ a legit site to claim my 0x coins? What are some precautions to have before claiming my air drop?
Patoshi パトシ's user avatar
1 vote
0 answers
179 views

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', ...
argubaby's user avatar
1 vote
1 answer
570 views

what is the role of relayer in 0x protocol?

I understand that 0x protocol allows orders to be transmitted across off chain channel to reach large audience and potential buyers/sellers. However, I don't get what a Relayer is exactly.
Davide C's user avatar
  • 866
2 votes
1 answer
166 views

Tracking orders on 0x network

How are the various 0x network order trackers sourcing on-chain settlement data? My first assumption was that they were utilising the Etherscan API, however Etherscan have their own tracker, found at ...
user72364's user avatar
  • 121
6 votes
1 answer
992 views

Decentralized Exchanges with Market Orders

My goal is to make a market order (sell/buy) from a smart contract without a centralized app feeding in the order data. E.g. buy token X for 1 ETH at current market. 0x Project So far I stumbled ...
Andi Giga's user avatar
  • 439

1 2 3 4 5
6