Beta
Private
Static
sendStatic
createSends an RFQ and options to the PFI to initiate an exchange
The RFQ message that will be sent to the PFI
Optional
opts: { Optional
replyA callback URL where the PFI will send subsequent messages
if message verification fails
if recipient DID resolution fails
if recipient DID does not have a PFI service entry
Static
generateCreates and signs a request token (JWT) that's included as the value of Authorization header for requests sent to a PFI API's endpoints that require authentication
JWT payload with the following claims:
aud
iss
exp
iat
jti
The JWT is then signed and returned.the request token (JWT)
RequestTokenSigningError If an error occurs during the token generation.
Static
getBeta
gets balances from the pfi provided
options
Static
getget a specific exchange from the pfi provided
options
Static
getreturns all exchanges created by requester
options
Static
getBeta
gets offerings from the pfi provided
options
Static
getStatic
submitSends the Close message to the PFI
if message verification fails
if recipient DID resolution fails
if recipient DID does not have a PFI service entry
Static
submitSends the Order message to the PFI
if message verification fails
if recipient DID resolution fails
if recipient DID does not have a PFI service entry
Static
verifyValidates and verifies the integrity of a request token (JWT) generated by TbdexHttpClient.generateRequestToken. Specifically:
the requester's DID as a string if the token is valid.
RequestTokenVerificationError If the token is invalid, expired, or has been tampered with
RequestTokenMissingClaimsError If the token does not contain all required claims
RequestTokenAudienceMismatchError If the token's aud
property does not match the PFI's DID
HTTP client for interacting with TBDex PFIs