Increase nonce

POST /increase_nonce

process increase nonce request to orderbook and return its hash

{
    "maker": str,
    "new_nonce": int,
    "gas_fee": {
        "type": dict, 
        "fields": {
            "gas_per_action": {"type": int, "min": 0},
            "fee_token": str,
            "max_gas_price": {"type": int, "min": 0},
            "conversion_rate": {"type": list, "min_size": 2, "max_size": 2, "item_schema": {"type": int, "min": 0}}
        }
    },
    "salt": int,
    "sign": {"type": list, "min": 2, "max": 2, "item_schema": {"type": int, "min": 0}},
}

Parameters:

  • maker:

    • Type: String

    • Description: Address of user initiating the nonce increase.

  • new_nonce:

    • Type: Integer

    • Description: The new nonce value that is to be set.

    • Constraints: Must be a non-negative integer.

  • gas_fee:

    • Type: Dictionary

    • Description: Information about the gas fee associated with the nonce increase operation.

    • Fields:

      • gas_per_action: Integer, minimum 0, representing the gas cost per action.

      • fee_token: String, indicating the token used for the fee.

      • max_gas_price: Integer, minimum 0, the maximum price per gas unit.

      • conversion_rate: List of integers, with minimum size 2 and maximum size 2, each element being non-negative, representing the conversion rate.

  • salt:

    • Type: Integer

    • Description: A random value used to ensure the uniqueness of the nonce increase request.

    • Constraints: Must be a non-negative integer.

  • sign:

    • Type: List

    • Description: Signature data required to authorize the nonce increase.

    • Constraints: Must be a list containing exactly 2 integer items, each of which should be non-negative.

Response example:

In case of a successful place, the order hash is returned

{
    'result': 12345 // increase nonce request hash
}

Success operation means the request successfully passed the validation phase and is now in the request processing queue.

In case of an unsuccessful request, the error and code are returned (see)

Last updated