Skip to content

EqAggregates


Storage functions


AccountUserGroups

Python

result = substrate.query(
    'EqAggregates', 'AccountUserGroups', [('Balances', 'Bailsmen', 'Borrowers'), 'AccountId']
)

Return value

'bool'

TotalUserGroups

Pallet storage - stores aggregates for each user group

Python

result = substrate.query(
    'EqAggregates', 'TotalUserGroups', [('Balances', 'Bailsmen', 'Borrowers'), 'u64']
)

Return value

{'collateral': 'u128', 'debt': 'u128'}