testing-set-timetravel.rst (517B)
1 .. ts:op:: testingSetTimetravel 2 3 Add an offset to the wallet's internal time. 4 5 **Request:** 6 7 The request must be a `TestingSetTimetravelRequest` object. 8 9 **Response:** 10 11 On success, the result is an empty object. 12 13 **Side effects:** 14 15 Offsets the wallet's internal clock, affecting all time-based logic 16 of the wallet. 17 18 .. ts:def:: TestingSetTimetravelRequest 19 20 interface TestingSetTimetravelRequest { 21 // Offset added to the wallet's internal time, in milliseconds. 22 offsetMs: number; 23 }