Skip to content

Utilities

utils

additional functions used by aiorocket2

Functions:

generate_idempotency_id()

Generate a simple idempotency identifier based on the current timestamp.

The xRocket Pay API accepts transferId / withdrawalId for idempotency.

backoff_sleep(attempt, base) async

Sleep using exponential backoff for the given attempt number (0-based).