aopd
Querying AOPP related objects happens here.
configuration
AOPD allows you to configure the callback URL the user's wallet should call with the generated proof and address. Query that URL with this object.
Example
{
aopd {
configuration {
callbackUrl
}
}
}
proofs
When an end-user uses AOPP to create a verified withdrawal address, it creates a proof. Proofs currently come in three different formats: AopdSignatureProof
, AopdMediaProof
and AopdSatoshiProof
. Once a proof is submitted, it is verified. Listing verified proofs happens with this object. Pagination is supported.
Example
Get the first ten proofs with:
{
aopd {
proofs(offset: 0, limit: 10) {
... on AopdSignatureProof{
id
}
... on AopdMediaProof{
id
}
... on AopdSatoshiProof{
id
}
}
}
}
proofAsXlsx
As the name suggests, this returns a proof selected through its ID formatted as a XLSX file byte contents, encoded as base64 string. Please note that the returned data is not a XLSX file but a JSON document in which one field contains the XLSX data.
Example
{
aopd {
proofAsXlsx(id: "476e7b57-b661-4e34-afd3-bfcc8cc774f7")
}
}
proofsAsXlsx
This returns all proofs formatted as a XLSX file byte contents, encoded as base64 string. Please note that the returned data is not a XLSX file but a JSON document in which one field contains the XLSX data.
Example
{
aopd {
proofsAsXlsx
}
}
proofsCount
A supporting query that returns the number of verified proofs.
Example
{
aopd {
proofsCount
}
}