Increase Nonce

API Increase nonce structure:

User have option to invalidate all its ongoing orders onchain by increasing his nonce in layer akira contract, if he afraid that exchange exchange can compromised and starts performing malicious activity.

Users can increase nonce through the Exchange by submitting a request to the Exchange. This will be processed without delays.

The user must cover the gas fee associated with this action

{
    "maker": "str",
    "new_nonce": "int",
    "gas_fee": {"type": "GasFee", "fields": "gas_fee_scheme"},
    "salt": "int",
    "sign": {"type": "list", "min": 2, "max": 2, "item_schema": {"type": "int", "min": 0}}, 
}

Note when building typed message for the increase nonce user should use actual addresses of tokens

Last updated