hashtagget_deposit_count

Read deposit count from deposit contract

Read the current validator deposit count from the deposit contract.

Signatures

# sync
w3.seismic.get_deposit_count(*, address: str = DEPOSIT_CONTRACT_ADDRESS) -> int

# async
await w3.seismic.get_deposit_count(*, address: str = DEPOSIT_CONTRACT_ADDRESS) -> int

Parameters

  • address: deposit contract address (defaults to DEPOSIT_CONTRACT_ADDRESS)

Returns

Deposit count as Python int.

Example

count = w3.seismic.get_deposit_count()
print(count)

Implementation detail

SDK decodes bytes [64:72] as little-endian uint64.

See Also

Last updated