1

I have a parameterized contract that includes a POSIXTime as a field called startTime served via PAB.

What is the appropriate stringified HTTP payload to indicate a date with time such as the 25th of September 2021 at noon (no timezone?).

1 Answer 1

3

I had troubles making POSIXTime a part of JSON payload, you can just unwrap the Integer inside and use it instead.

Anyway, JSON serialization is implemented here, you can check that instance for details.

If you need to convert POSIXTime to standard time format, something like this function would be useful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.