accountsums

package
v0.65.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryAccountSums

func QueryAccountSums(
	db *gorm.DB,
	credentialTag uint8,
	stakingKey []byte,
) (models.AccountSums, error)

QueryAccountSums aggregates the lovelace totals Blockfrost reports on the account endpoint that are not derivable from the live account row:

  • withdrawals_sum: every reward withdrawal recorded for the credential
  • reserves_sum / treasury_sum: every MIR distribution to the credential, split by the source pot

All totals are reconstructed from persisted state, so they remain correct across rollbacks (the underlying rows are themselves rollback-aware).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL