trpd
This object contains all the TRP (Travel Rule Protocol) related data. All this data is already included in the autod
query, and we suggest using that query instead.
vasps
The vasps
object describes the registered counter-party, TRP enabled, VASPs. Only when a beneficiary LEI of an incoming TRP message matches the LEI of one of the registered VASPs does the autod txDetails
object return the TRP message. This prevents spam.
Example
The following query returns the name and the optional public key for each configured counter-party VASP:
{
trpd {
vasps {
name
pubkey
}
}
}
See the live documentation for the entire list of queryable objects and fields.
configuration
As the name suggests, this object returns the current TRP configuration of your VASP.
Example
One of the configurable attributes is the LEI. Query the current value with:
{
trpd {
configuration {
lei
}
}
}
validateTravelAddress(lnurl)
Validates the Travel Address and returns the beneficiary VASP. This will check if the counterparty VASP has sent a valid Travel Address. A Travel Address is valid if:
- The counterparty VASP was whitelisted
- The Travel Address encodes a URL
- Checks if the url has a query parameter
tag=travelRuleInquiry
Example
{
trpd{
validateTravelAddress(lnurl: "LNURL1DP68GURN8GHJ7CTSDYH8GETNW35KUEEWXGCKZMNPD3UHG6TRWVH8S7T69A68YCTWWDNX2UNN9UCXVD3EVCCNSVEDV5ERXCEDX33KYCEDVGCRWEFDXVCNVWRRVVUNJDNPVSUR7ARPVU7HGUNPWEJKC5N4D3J5JMN3W45HY7G6CNGTZ"){
url
name
lei
pubkey
autoApproved
createdAt
}
}
}
custodialUsers(limit, offset)
Allows you to get a list of users and their Travel Addresses. The lnurl
is the field holding the Travel Address.
Example
{
trpd{
custodialUsers(limit:5, offset: 0){
id
firstName
lastName
asset
walletAddress
lnurl
createdAt
}
}
}
txReport(id)
Creates a .docx transaction report, in base64-encoded form. This encoding is done for graphQL compatibility. You will then need to decode it.
Example
{
trpd{
txReport(id: "11353b43-7306-42cf-8b7d-15a1de4e9fc2")
}
}
custodialUsersCount
Returns the number of entries in the custodial users table. You can use this number to paginate the users returned by custodialUsers(limit, offset).
Example
{
trpd{
custodialUsersCount
}
}