API reference · OTC
Follow an OTC transaction
GET
https://dev.payday.direct/api/v1/otc/confirm/{sig}confirmed once it has landed; err says in words why it failed (nothing moves when it fails). ?index=1 also updates the offer list.
Needs an API key in Authorization: Bearer or X-API-Key. Authentication
Path parameters
sigstringrequiredFrom POST /otc/send
Query parameters
index"1"Also update the offer list from it once confirmed
Responses
200OK
401Missing or invalid key
Response fields
okbooleanconfirmedbooleanerrstring | nullWhy it failed on chain, in words
errCodeinteger | nullThe program's error number: 6016 (over your limit) and 6022 mean the price moved, so build the fill again