trpd

Everything related to the Travel Rule Protocol.

registerOrUpdateVasp

Before transactions are turned by the txDetails query, a VASP needs to be registered.

Example

mutation {
  trpd {
    registerOrUpdateVasp(vasp: {
        url: "https://someonesvasp.ch/",
        name: "CHANGES_HERE",
        lei: "ERTV00EW0P08QHUFXO73",
        autoApproved: false
    }) {
      name
    }
  }
}

updateConfiguration

In order to receive TRP messages your VASP needs to be configured. That is done with this query. Creating and updating are the same things. All arguments always need to be passed.

The lnurlBaseUrl is the external facing host to be used when exchanging messages in the advanced flow.

Example

mutation {
  trpd {
    updateConfiguration(config: {
      name: "Your VASP",
      lei: "RILFO74KP1CM8P6PCT96",
      lnurlBaseUrl: "https://api.testing.21analytics.xyz/",
      matchNameIgnoreCase: false,
      matchNameLevenshteinThreshold: 0
    }) {
      name
    }
  }
}