aopd

Changing AOPP related server state happens under this object type.

updateConfiguration

The AOPP functionality of 21 Travel Rule knows only one configuration parameter. This parameter is called callbackUrl and governs where a user's wallet should POST the proof when completing an AOPP request.

Example

mutation {
  aopd {
    updateConfiguration(config: {callbackUrl: "https://api.testing.21analytics.xyz/proofs/"}) {
      callbackUrl
    }
  }
}

registerProof

Proofs obtained via wallets that do not support AOPP can be stored with this query. For example, the end-user has manually submitted the signature for a signing challenge.

Example

mutation {
  aopd {
    registerProof(proof: {
      message: "hello", 
      asset: BTC, 
      address: "bc1qnshsvhrfl28g03k0vxdez6vua56r0c72xy9e93", 
      signature: "H1oYVmDaWxZBPEk2ou4myn1SRC20ycBUPPD5fLS+SmQ1e04Bi1J9mIJ5fNhe3khDhJRUX2fU+VHGKlJdAjYIvBU="
    }) {
      id
    }
  }
}