algokit_subscriber.types.block
¶
Module Contents¶
Classes¶
A value delta as a result of a block transaction |
|
Eval deltas for a block |
|
The representation of all important data for a single transaction or inner transaction and its side effects within a committed block. |
|
Data that is returned in a raw Algorand block for a single transaction |
|
Data that is returned in a raw Algorand block. |
|
Data that is returned in a raw Algorand block. |
Data¶
API¶
- class BlockValueDelta¶
Bases:
typing.TypedDict
A value delta as a result of a block transaction
Initialization
Initialize self. See help(type(self)) for accurate signature.
- action_type: int¶
None
DeltaAction is an enum of actions that may be performed when applying a delta to a TEAL key/value store:
1
: SetBytesAction indicates that a TEAL byte slice should be stored at a key2
: SetUintAction indicates that a Uint should be stored at a key3
: DeleteAction indicates that the value for a particular key should be deleted
- __contains__()¶
- __delattr__()¶
- __delitem__()¶
- __dir__()¶
- __eq__()¶
- __format__()¶
- __ge__()¶
- __getattribute__()¶
- __getitem__()¶
- __getstate__()¶
- __gt__()¶
- __ior__()¶
- __iter__()¶
- __le__()¶
- __len__()¶
- __lt__()¶
- __ne__()¶
- __new__()¶
- __or__()¶
- __reduce__()¶
- __reduce_ex__()¶
- __repr__()¶
- __reversed__()¶
- __ror__()¶
- __setattr__()¶
- __setitem__()¶
- __sizeof__()¶
- __str__()¶
- __subclasshook__()¶
- clear()¶
- copy()¶
- get()¶
- items()¶
- keys()¶
- pop()¶
- popitem()¶
- setdefault()¶
- update()¶
- values()¶
- class BlockTransactionEvalDelta¶
Bases:
typing.TypedDict
Eval deltas for a block
Initialization
Initialize self. See help(type(self)) for accurate signature.
- gd: dict[str, algokit_subscriber.types.block.BlockValueDelta]¶
None
The delta of global state, keyed by key
- ld: dict[int, dict[str, algokit_subscriber.types.block.BlockValueDelta]]¶
None
The delta of local state keyed by account ID offset in [txn.Sender, …txn.Accounts] and then keyed by key
- itx: typing_extensions.NotRequired[list[BlockInnerTransaction]]¶
None
Inner transactions
- __contains__()¶
- __delattr__()¶
- __delitem__()¶
- __dir__()¶
- __eq__()¶
- __format__()¶
- __ge__()¶
- __getattribute__()¶
- __getitem__()¶
- __getstate__()¶
- __gt__()¶
- __ior__()¶
- __iter__()¶
- __le__()¶
- __len__()¶
- __lt__()¶
- __ne__()¶
- __new__()¶
- __or__()¶
- __reduce__()¶
- __reduce_ex__()¶
- __repr__()¶
- __reversed__()¶
- __ror__()¶
- __setattr__()¶
- __setitem__()¶
- __sizeof__()¶
- __str__()¶
- __subclasshook__()¶
- clear()¶
- copy()¶
- get()¶
- items()¶
- keys()¶
- pop()¶
- popitem()¶
- setdefault()¶
- update()¶
- values()¶
- LogicSig¶
None
- MultisigSig¶
None
- class TransactionInBlock¶
Bases:
typing.TypedDict
The representation of all important data for a single transaction or inner transaction and its side effects within a committed block.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- block_transaction: BlockTransaction | BlockInnerTransaction¶
None
The block data for the transaction
- round_offset: int¶
None
The offset of the transaction within the round including inner transactions.
@example
0
1
2
3
4
5
- round_index: int¶
None
The index within the block.txns array of this transaction or if it’s an inner transaction of it’s ultimate parent transaction.
@example
0
1
1
1
1
2
- parent_transaction_id: typing_extensions.NotRequired[None | str]¶
None
The ID of the parent transaction if this is an inner transaction.
- parent_offset: typing_extensions.NotRequired[None | int]¶
None
The offset within the parent transaction.
@example
None
None
0
1
2
None
- transaction: algosdk.transaction.Transaction¶
None
The transaction as an algosdk
Transaction
object.
- created_asset_id: typing_extensions.NotRequired[None | int]¶
None
The asset ID if an asset was created from this transaction.
- created_app_id: typing_extensions.NotRequired[None | int]¶
None
The app ID if an app was created from this transaction.
- asset_close_amount: typing_extensions.NotRequired[None | int]¶
None
The asset close amount if the sender asset position was closed from this transaction.
- close_amount: typing_extensions.NotRequired[None | int]¶
None
The ALGO close amount if the sender account was closed from this transaction.
- logs: typing_extensions.NotRequired[None | list[str]]¶
None
Any logs that were issued as a result of this transaction.
- __contains__()¶
- __delattr__()¶
- __delitem__()¶
- __dir__()¶
- __eq__()¶
- __format__()¶
- __ge__()¶
- __getattribute__()¶
- __getitem__()¶
- __getstate__()¶
- __gt__()¶
- __ior__()¶
- __iter__()¶
- __le__()¶
- __len__()¶
- __lt__()¶
- __ne__()¶
- __new__()¶
- __or__()¶
- __reduce__()¶
- __reduce_ex__()¶
- __repr__()¶
- __reversed__()¶
- __ror__()¶
- __setattr__()¶
- __setitem__()¶
- __sizeof__()¶
- __str__()¶
- __subclasshook__()¶
- clear()¶
- copy()¶
- get()¶
- items()¶
- keys()¶
- pop()¶
- popitem()¶
- setdefault()¶
- update()¶
- values()¶
- class BlockInnerTransaction¶
Bases:
typing.TypedDict
- dt: typing_extensions.NotRequired[None | algokit_subscriber.types.block.BlockTransactionEvalDelta]¶
None
The eval deltas for the block
- caid: typing_extensions.NotRequired[None | int]¶
None
Asset ID when an asset is created by the transaction
- apid: typing_extensions.NotRequired[None | int]¶
None
App ID when an app is created by the transaction
- lsig: typing_extensions.NotRequired[None | algokit_subscriber.types.block.LogicSig]¶
None
Logic signature
- msig: typing_extensions.NotRequired[None | algokit_subscriber.types.block.MultisigSig]¶
None
Transaction multisig signature
- sgnr: typing_extensions.NotRequired[None | bytes]¶
None
The signer, if signing with a different key than the Transaction type
from
property indicates
- __contains__()¶
- __delattr__()¶
- __delitem__()¶
- __dir__()¶
- __eq__()¶
- __format__()¶
- __ge__()¶
- __getattribute__()¶
- __getitem__()¶
- __getstate__()¶
- __gt__()¶
- __ior__()¶
- __iter__()¶
- __le__()¶
- __len__()¶
- __lt__()¶
- __ne__()¶
- __new__()¶
- __or__()¶
- __reduce__()¶
- __reduce_ex__()¶
- __repr__()¶
- __reversed__()¶
- __ror__()¶
- __setattr__()¶
- __setitem__()¶
- __sizeof__()¶
- __str__()¶
- __subclasshook__()¶
- clear()¶
- copy()¶
- get()¶
- items()¶
- keys()¶
- pop()¶
- popitem()¶
- setdefault()¶
- update()¶
- values()¶
- class BlockTransaction¶
Bases:
algokit_subscriber.types.block.BlockInnerTransaction
Data that is returned in a raw Algorand block for a single transaction
@see https://github.com/algorand/go-algorand/blob/master/data/transactions/signedtxn.go#L32
Initialization
Initialize self. See help(type(self)) for accurate signature.
- dt: typing_extensions.NotRequired[None | algokit_subscriber.types.block.BlockTransactionEvalDelta]¶
None
- __contains__()¶
- __delattr__()¶
- __delitem__()¶
- __dir__()¶
- __eq__()¶
- __format__()¶
- __ge__()¶
- __getattribute__()¶
- __getitem__()¶
- __getstate__()¶
- __gt__()¶
- __ior__()¶
- __iter__()¶
- __le__()¶
- __len__()¶
- __lt__()¶
- __ne__()¶
- __new__()¶
- __or__()¶
- __reduce__()¶
- __reduce_ex__()¶
- __repr__()¶
- __reversed__()¶
- __ror__()¶
- __setattr__()¶
- __setitem__()¶
- __sizeof__()¶
- __str__()¶
- __subclasshook__()¶
- clear()¶
- copy()¶
- get()¶
- items()¶
- keys()¶
- pop()¶
- popitem()¶
- setdefault()¶
- update()¶
- values()¶
- BlockAgreementCertificate¶
None
- class Block¶
Bases:
typing.TypedDict
Data that is returned in a raw Algorand block.
@see https://github.com/algorand/go-algorand/blob/master/data/bookkeeping/block.go#L32
Initialization
Initialize self. See help(type(self)) for accurate signature.
- earn: int¶
None
RewardsLevel specifies how many rewards, in MicroAlgos, have been distributed to each config.Protocol.RewardUnit of MicroAlgos since genesis.
- frac: int¶
None
The number of leftover MicroAlgos after the distribution of RewardsRate/rewardUnits MicroAlgos for every reward unit in the next round.
- proto: str¶
None
UpgradeState tracks the protocol upgrade state machine; proto is the current protocol.
- rate: typing_extensions.NotRequired[None | int]¶
None
The number of new MicroAlgos added to the participation stake from rewards at the next round.
- rwd: bytes¶
None
The RewardsPool accepts periodic injections from the FeeSink and continually redistributes them to addresses as rewards.
- tc: int¶
None
TxnCounter is the number of the next transaction that will be committed after this block. Genesis blocks can start at either 0 or 1000, depending on a consensus parameter (AppForbidLowResources).
- txn: bytes¶
None
Root of transaction merkle tree using SHA512_256 hash function. This commitment is computed based on the PaysetCommit type specified in the block’s consensus protocol.
- nextyes: typing_extensions.NotRequired[None | int]¶
None
Number of blocks which approved the protocol upgrade.
- nextbefore: typing_extensions.NotRequired[None | int]¶
None
Deadline round for this protocol upgrade (No votes will be considered after this round).
- nextswitch: typing_extensions.NotRequired[None | int]¶
None
Round on which the protocol upgrade will take effect.
- txns: typing_extensions.NotRequired[None | list[algokit_subscriber.types.block.BlockTransaction]]¶
None
The transactions within the block.
- prp: typing_extensions.NotRequired[None | bytes]¶
None
Proposer is the proposer of this block. Like the Seed, agreement adds this after the block is assembled by the transaction pool, so that the same block can be prepared for multiple participating accounts in the same node. Therefore, it can not be used to influence block evaluation. Populated if proto.Payouts.Enabled
- fc: typing_extensions.NotRequired[None | int]¶
None
FeesCollected is the sum of all fees paid by transactions in this block. Populated if proto.Payouts.Enabled
- bi: typing_extensions.NotRequired[None | int]¶
None
Bonus is the bonus incentive to be paid for proposing this block. It begins as a consensus parameter value, and decays periodically.
- pp: typing_extensions.NotRequired[None | int]¶
None
ProposerPayout is the amount that is moved from the FeeSink to the Proposer in this block. It is basically the bonus + the payouts percent of FeesCollected, but may be zero’d by proposer ineligibility.
- __contains__()¶
- __delattr__()¶
- __delitem__()¶
- __dir__()¶
- __eq__()¶
- __format__()¶
- __ge__()¶
- __getattribute__()¶
- __getitem__()¶
- __getstate__()¶
- __gt__()¶
- __ior__()¶
- __iter__()¶
- __le__()¶
- __len__()¶
- __lt__()¶
- __ne__()¶
- __new__()¶
- __or__()¶
- __reduce__()¶
- __reduce_ex__()¶
- __repr__()¶
- __reversed__()¶
- __ror__()¶
- __setattr__()¶
- __setitem__()¶
- __sizeof__()¶
- __str__()¶
- __subclasshook__()¶
- clear()¶
- copy()¶
- get()¶
- items()¶
- keys()¶
- pop()¶
- popitem()¶
- setdefault()¶
- update()¶
- values()¶
- class BlockData¶
Bases:
typing.TypedDict
Data that is returned in a raw Algorand block.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- block: algokit_subscriber.types.block.Block¶
None
The block itself.
- cert: algokit_subscriber.types.block.BlockAgreementCertificate¶
None
cert (BlockAgreementCertificate): The block certification.
- __contains__()¶
- __delattr__()¶
- __delitem__()¶
- __dir__()¶
- __eq__()¶
- __format__()¶
- __ge__()¶
- __getattribute__()¶
- __getitem__()¶
- __getstate__()¶
- __gt__()¶
- __ior__()¶
- __iter__()¶
- __le__()¶
- __len__()¶
- __lt__()¶
- __ne__()¶
- __new__()¶
- __or__()¶
- __reduce__()¶
- __reduce_ex__()¶
- __repr__()¶
- __reversed__()¶
- __ror__()¶
- __setattr__()¶
- __setitem__()¶
- __sizeof__()¶
- __str__()¶
- __subclasshook__()¶
- clear()¶
- copy()¶
- get()¶
- items()¶
- keys()¶
- pop()¶
- popitem()¶
- setdefault()¶
- update()¶
- values()¶