Create the signing header and payload, which comprises of a header and a payload portion.
2.
Sign the JWT using your private key with the RSA-SHA256 algorithm.
3.
Add the resulting signed token to the Authorization: Bearer $jwt header in the request. ORZCash Access API will verify the JWT signature against provided claims and verify the URI, method, and request body of your API request against the claims provided. In case of a token verification error, ORZCash Access API will return HTTP Code 401 Unauthorized with the error code INVALID_SIGNATURE JWT Token Specification The JWT token shall be created in accordance to the following specification header
alg RS256
typ JWT payload/claims
sub - ORZCash Access Key, (ie. 899a7a89-bb6b-4d43-a702-c6aa45dd89cf
iat The time at which the JWT was issued, in seconds since Epoch.
exp The expiration time on and after which the JWT must not be accepted for processing, in seconds since Epoch. It must be less than iat+30sec.
body Hex-encoded SHA-256 hash of the raw HTTP request body. When an empty HTTP content body is provided (ie. GET requests) this field is optional
uri The URI part of the request. e.g. /v1/transactions?filter=123