Frequently asked questions
How signatures (documents) are distributed to relayers?
Every active relayer is placed in queue. Signatures are evenly distributed to every relayer and they are reserved for 3 minutes. If relayer fails to relay document in that period, signature is set as "free for all" and now every relayer can relay this signature.
Which relayer will get "free for all" signature?
That depends on multiple things such as, how good is performance of relayer, how much gas fee it's paying for transaction etc...
Can I hit CargoX API every second and get all "free for all" signatures?
No. Result of API is cached for 1 minute, so hitting API every second won't make a difference. If there is new signature reserved for your relayer, cache is boosted and you will get it right away.
I want to run relayer. Where can I find official relayer app?
What is CargoX SIGNATURE API URL?
What is CargoX QUEUE API URL?
What is CargoX GAS API URL?
I am using official relayer code. Why I have so much failed transactions?
It's probably because Polygon network is congested and gas fees are very high. You need to edit code, set higher fee limit you are willing to pay for transactions.
How can I set higher fee in official relayer code?
You need to edit file src/utils/process-signatures.ts. Search for SafeGasPrice and change it to FastGasPrice. Then edit file src/api.ts, search for SafeGasPrice and change it to FastGasPrice. You need to be aware that in extreme network conditions even that won't be enough. In that case you need to change FastGasPrice with your custom value.
My transactions are stuck, how to fix that?
You need to manually send transaction with higher gas fee via MetaMask for example, or you can use tool (created by community member): https://github.com/brightknightx/cxo-free-me