Upload gas free orders
Last updated
Last updated
Call the "Get Rate Interface" to obtain the return value isSupportNoGas, where Y indicates support for gas free exchange
Call the "Create Order Interface" and pass the isSupportNoGas field. If successful, the noGasTxInfo field will be returned as the call to be signed_ Data
For call_ Sign data to obtain signed data such as r, s, v, rawTransaction
Call the "Upload gas free orders", pass r, s, v, rawTransaction, and the orderId returned by the "Create Order Interface" to complete the process
Step 3 Example Code
1.Interface call:
2. Request parameter instance
3. Example of request parameters
4.Example of returned results
5.Return Parameter Description
java
curl
parameter | whether | explain |
---|---|---|
field name | field | type | remark |
---|---|---|---|
orderId
Yes
eg:5d3b383f-5b58-4a35-87b6-2de8d23a492e
r
Yes
eg:0xxxxxxx
s
Yes
eg:0xxxxxxx
v
Yes
eg: 0xxx
rawTransaction
Yes
eg: 0xxxxxxx
orderId
orderId
String
orderId
tx hash
transactionHash
String
tx hash