Conversation
needed to generate the IMX sig as described in the docs here: https://docs.x.immutable.com/docs/generate-imx-signature/
|
Quick question, where would you need an |
|
The primary use case is Immortal Game's Place Bid API. To bid on their auction requires the output of /v1/signable-transfer-details along with the signatures normally generated from it for /v1/transfers (including x-imx-signature). The secondary (unrelated) use case is to be able to split up the API calls for /v1/signable-transfer-details and /v1/transfers (maybe this is already possible, but I was just using the transfer() function so far which does both of these API calls). The reason is /v1/transfers has side effects while /v1/signable-transfer-details does not, and so there's some very small benefit to splitting them up (it can reduce the size of the window for an error to occur between when the transfer is started and when the promise resolves and we can record the newly started transfer_id). |
|
Hi, |
Summary
export
signRawWhy the changes
Generating the x-imx-signature header requires following the signature format produced by
signRaw. The IMX docs here mention using signRaw, but it does not seem to be exported for use yet.