Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::validation::Hex256ItemType Struct Referencefinal

Validates that the elements of the array is of type Hex256 uint. More...

#include <Validators.hpp>

Static Public Member Functions

static MaybeError verify (boost::json::value const &value, std::string_view key)
 Validates given the prerequisite that the type of the json value is an array, verifies all values within the array is of uint256 hash.
 

Detailed Description

Validates that the elements of the array is of type Hex256 uint.

Member Function Documentation

◆ verify()

static MaybeError rpc::validation::Hex256ItemType::verify ( boost::json::value const & value,
std::string_view key )
inlinestaticnodiscard

Validates given the prerequisite that the type of the json value is an array, verifies all values within the array is of uint256 hash.

Parameters
valuethe value to verify
keyThe key used to retrieve the tested value from the outer object
Returns
RippledError::rpcINVALID_PARAMS if validation failed; otherwise no error is returned

The documentation for this struct was generated from the following file: