- getDonauStatements#
Get a list of donation statements for this wallet. Both donation statements for the currently configured donation authority as well as past configurations (if they exist) are returned.
Request:
The request arguments must be a GetDonauStatementsRequest object.
Response:
On success, the result is a GetDonauStatementsResponse object.
Side effects:
Submits all pending donation receipts to the respective donation authority over the network and marks them as submitted in the wallet database, emitting a balance-change notification, before the statements are fetched.
Details:
A statement is requested from every donation authority (or only from the one named by
donauBaseUrl, if given) for each year with submitted receipts; years for which the authority has not yet issued a statement contribute no entry to the result.
interface GetDonauStatementsRequest {
donauBaseUrl?: string;
}
interface GetDonauStatementsResponse {
statements: DonauStatementItem[];
}
interface DonauStatementItem {
total: AmountString;
year: number;
legalDomain: string;
uri: string;
donationStatementSig: EddsaSignatureString;
donauPub: EddsaPublicKeyString;
}