Complete model reference
Generated by
tools/generate_documentation.py. Do not edit this page by hand.
Every table below is derived from the runtime model schema. Required describes strict runtime parsing. A dash means no declared default. RPC parsing may additionally require response-only AccountBlock fields.
AcceleratorProject
Import: znn.model.models.AcceleratorProject
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
id | id | string (hex-32) | Hash | yes | — |
name | name | string | str | yes | — |
description | description | string | str | yes | — |
url | url | string | str | yes | — |
znnFundsNeeded | znnFundsNeeded | decimal-string (base-10) | int | yes | — |
qsrFundsNeeded | qsrFundsNeeded | decimal-string (base-10) | int | yes | — |
creationTimestamp | creationTimestamp | number | int | yes | — |
statusInt | status | number | int | yes | — |
voteBreakdown | votes | model | VoteBreakdown | yes | — |
AccountBlock
Runtime class: znn.model.nom.account_block.AccountBlock
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
version | version | number | int | yes | — |
chainIdentifier | chainIdentifier | number | int | yes | — |
blockType | blockType | number | int | yes | — |
hash | hash | string (hex-32) | Hash | yes | — |
previousHash | previousHash | string (hex-32) | Hash | yes | — |
height | height | number | int | yes | — |
momentumAcknowledged | momentumAcknowledged | model | HashHeight | yes | — |
address | address | string (bech32-address) | Address | yes | — |
toAddress | toAddress | string (bech32-address) | Address | yes | — |
amount | amount | decimal-string (base-10) | int | yes | — |
tokenStandard | tokenStandard | string (bech32-token-standard) | TokenStandard | yes | — |
fromBlockHash | fromBlockHash | string (hex-32) | Hash | yes | — |
data | data | string (base64) | bytes | yes | — |
fusedPlasma | fusedPlasma | number | int | yes | — |
difficulty | difficulty | number | int | yes | — |
nonce | nonce | string | str | yes | — |
publicKey | publicKey | string (base64) | bytes | yes | — |
signature | signature | string (base64) | bytes | yes | — |
token | token | model | Token | no | — |
descendantBlocks | descendantBlocks | array | list[AccountBlock] | yes | — |
basePlasma | basePlasma | number | int | yes | — |
usedPlasma | usedPlasma | number | int | yes | — |
changesHash | changesHash | string (hex-32) | Hash | yes | — |
confirmationDetail | confirmationDetail | model | AccountBlockConfirmationDetail | no | — |
pairedAccountBlock | pairedAccountBlock | model | AccountBlock | no | — |
AccountBlockConfirmationDetail
Import: znn.model.models.AccountBlockConfirmationDetail
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
numConfirmations | numConfirmations | number | int | yes | — |
momentumHeight | momentumHeight | number | int | yes | — |
momentumHash | momentumHash | string (hex-32) | Hash | yes | — |
momentumTimestamp | momentumTimestamp | number | int | yes | — |
AccountBlockList
Import: znn.model.models.AccountBlockList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | no | 0 |
list | list | array | list[AccountBlock] | no | [] |
more | more | boolean | bool | no | false |
AccountBlockTemplate
Import: znn.model.models.AccountBlockTemplate
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
version | version | number | int | yes | — |
chainIdentifier | chainIdentifier | number | int | yes | — |
blockType | blockType | number | int | yes | — |
hash | hash | string (hex-32) | Hash | yes | — |
previousHash | previousHash | string (hex-32) | Hash | yes | — |
height | height | number | int | yes | — |
momentumAcknowledged | momentumAcknowledged | model | HashHeight | yes | — |
address | address | string (bech32-address) | Address | yes | — |
toAddress | toAddress | string (bech32-address) | Address | yes | — |
amount | amount | decimal-string (base-10) | int | yes | — |
tokenStandard | tokenStandard | string (bech32-token-standard) | TokenStandard | yes | — |
fromBlockHash | fromBlockHash | string (hex-32) | Hash | yes | — |
data | data | string (base64) | bytes | yes | — |
fusedPlasma | fusedPlasma | number | int | yes | — |
difficulty | difficulty | number | int | yes | — |
nonce | nonce | string | str | yes | — |
publicKey | publicKey | string (base64) | bytes | yes | — |
signature | signature | string (base64) | bytes | yes | — |
AccountHeader
Import: znn.model.models.AccountHeader
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
address | address | string (bech32-address) | Address | yes | — |
hash | hash | string (hex-32) | Hash | yes | — |
height | height | number | int | yes | — |
AccountInfo
Import: znn.model.models.AccountInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
address | address | string (bech32-address) | Address | yes | — |
blockCount | accountHeight | number | int | no | 0 |
balanceInfoMap | balanceInfoMap | object | dict[str, BalanceInfoListItem] | no | {} |
Address
Runtime class: znn.model.primitives.address.Address
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
hrp | hrp | string | str | yes | — |
core | core | string (model-specific-binary) | str | yes | — |
BalanceInfoListItem
Import: znn.model.models.BalanceInfoListItem
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
token | token | model | Token | yes | — |
balance | balance | decimal-string (base-10) | int | yes | — |
BridgeInfo
Import: znn.model.models.BridgeInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
administrator | administrator | string (bech32-address) | Address | yes | — |
compressedTssECDSAPubKey | compressedTssECDSAPubKey | string | str | yes | — |
decompressedTssECDSAPubKey | decompressedTssECDSAPubKey | string | str | yes | — |
allowKeyGen | allowKeyGen | boolean | bool | yes | — |
halted | halted | boolean | bool | yes | — |
unhaltedAt | unhaltedAt | number | int | yes | — |
unhaltDurationInMomentums | unhaltDurationInMomentums | number | int | yes | — |
tssNonce | tssNonce | number | int | yes | — |
metadata | metadata | string | str | yes | — |
BridgeNetworkInfo
Import: znn.model.models.BridgeNetworkInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
networkClass | networkClass | number | int | yes | — |
chainId | chainId | number | int | yes | — |
name | name | string | str | yes | — |
contractAddress | contractAddress | string | str | yes | — |
metadata | metadata | string | str | yes | — |
tokenPairs | tokenPairs | array | list[TokenPair] | yes | — |
BridgeNetworkInfoList
Import: znn.model.models.BridgeNetworkInfoList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | yes | — |
list | list | array | list[BridgeNetworkInfo] | yes | — |
DelegationInfo
Import: znn.model.models.DelegationInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
name | name | string | str | yes | — |
status | status | number | int | yes | — |
weight | weight | decimal-string (base-10) | int | yes | — |
DetailedMomentum
Import: znn.model.models.DetailedMomentum
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
blocks | blocks | array | list[AccountBlock] | no | [] |
momentum | momentum | model | Momentum | yes | — |
DetailedMomentumList
Import: znn.model.models.DetailedMomentumList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | no | 0 |
list | list | array | list[DetailedMomentum] | no | [] |
FusionEntry
Import: znn.model.models.FusionEntry
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
qsrAmount | qsrAmount | decimal-string (base-10) | int | yes | — |
beneficiary | beneficiary | string (bech32-address) | Address | yes | — |
expirationHeight | expirationHeight | number | int | yes | — |
id | id | string (hex-32) | Hash | yes | — |
FusionEntryList
Import: znn.model.models.FusionEntryList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
qsrAmount | qsrAmount | decimal-string (base-10) | int | no | 0n |
count | count | number | int | no | 0 |
list | list | array | list[FusionEntry] | no | [] |
GetRequiredPowParam
Import: znn.model.models.GetRequiredPowParam
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
address | address | string (bech32-address) | Address | yes | — |
blockType | blockType | number | int | yes | — |
toAddress | toAddress | string (bech32-address) | Address | no | undefined |
data | data | string (base64) | bytes | no | undefined |
GetRequiredPowResponse
Import: znn.model.models.GetRequiredPowResponse
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
availablePlasma | availablePlasma | number | int | yes | — |
basePlasma | basePlasma | number | int | yes | — |
requiredDifficulty | requiredDifficulty | number | int | yes | — |
Hash
Runtime class: znn.model.primitives.hash.Hash
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
core | core | string (model-specific-binary) | str | yes | — |
HashHeight
Runtime class: znn.model.primitives.hash_height.HashHeight
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
hash | hash | string (hex-32) | Hash | no | EMPTY_HASH |
height | height | number | int | yes | — |
HtlcInfo
Import: znn.model.models.HtlcInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
id | id | string (hex-32) | Hash | yes | — |
timeLocked | timeLocked | string (bech32-address) | Address | yes | — |
hashLocked | hashLocked | string (bech32-address) | Address | yes | — |
tokenStandard | tokenStandard | string (bech32-token-standard) | TokenStandard | yes | — |
amount | amount | decimal-string (base-10) | int | yes | — |
expirationTime | expirationTime | number | int | yes | — |
hashType | hashType | number | int | yes | — |
keyMaxSize | keyMaxSize | number | int | yes | — |
hashLock | hashLock | string (base64) | bytes | yes | — |
LiquidityInfo
Import: znn.model.models.LiquidityInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
administrator | administrator | string (bech32-address) | Address | yes | — |
isHalted | isHalted | boolean | bool | yes | — |
znnReward | znnReward | decimal-string (base-10) | int | yes | — |
qsrReward | qsrReward | decimal-string (base-10) | int | yes | — |
tokenTuples | tokenTuples | array | list[TokenTuple] | yes | — |
LiquidityStakeEntry
Import: znn.model.models.LiquidityStakeEntry
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
amount | amount | decimal-string (base-10) | int | yes | — |
tokenStandard | tokenStandard | string (bech32-token-standard) | TokenStandard | yes | — |
weightedAmount | weightedAmount | decimal-string (base-10) | int | yes | — |
startTime | startTime | number | int | yes | — |
revokeTime | revokeTime | number | int | yes | — |
expirationTime | expirationTime | number | int | yes | — |
stakeAddress | stakeAddress | string (bech32-address) | Address | yes | — |
id | id | string (hex-32) | Hash | yes | — |
LiquidityStakeList
Import: znn.model.models.LiquidityStakeList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
totalAmount | totalAmount | decimal-string (base-10) | int | yes | — |
totalWeightedAmount | totalWeightedAmount | decimal-string (base-10) | int | yes | — |
count | count | number | int | yes | — |
list | list | array | list[LiquidityStakeEntry] | yes | — |
Model
Import: znn.model.models.Model
This primitive has a custom validated wire representation.
Momentum
Import: znn.model.models.Momentum
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
version | version | number | int | yes | — |
chainIdentifier | chainIdentifier | number | int | yes | — |
hash | hash | string (hex-32) | Hash | yes | — |
previousHash | previousHash | string (hex-32) | Hash | yes | — |
height | height | number | int | yes | — |
timestamp | timestamp | number | int | yes | — |
data | data | string (base64) | bytes | yes | — |
content | content | array | list[AccountHeader] | yes | — |
changesHash | changesHash | string (hex-32) | Hash | yes | — |
publicKey | publicKey | string (base64) | bytes | yes | — |
signature | signature | string (base64) | bytes | yes | — |
producer | producer | string (bech32-address) | Address | yes | — |
MomentumList
Import: znn.model.models.MomentumList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | no | 0 |
list | list | array | list[Momentum] | no | [] |
NetworkInfo
Import: znn.model.models.NetworkInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
numPeers | numPeers | number | int | yes | — |
self | self | model | Peer | yes | — |
peers | peers | array | list[Peer] | yes | — |
OrchestratorInfo
Import: znn.model.models.OrchestratorInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
windowSize | windowSize | number | int | yes | — |
keyGenThreshold | keyGenThreshold | number | int | yes | — |
confirmationsToFinality | confirmationsToFinality | number | int | yes | — |
estimatedMomentumTime | estimatedMomentumTime | number | int | yes | — |
allowKeyGenHeight | allowKeyGenHeight | number | int | yes | — |
OsInfo
Import: znn.model.models.OsInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
os | os | string | str | yes | — |
platform | platform | string | str | yes | — |
platformFamily | platformFamily | string | str | yes | — |
platformVersion | platformVersion | string | str | yes | — |
kernelVersion | kernelVersion | string | str | yes | — |
memoryTotal | memoryTotal | number | int | yes | — |
memoryFree | memoryFree | number | int | yes | — |
numCPU | numCPU | number | int | yes | — |
numGoroutine | numGoroutine | number | int | yes | — |
Peer
Import: znn.model.models.Peer
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
publicKey | publicKey | string | str | yes | — |
ip | ip | string | str | yes | — |
Phase
Import: znn.model.models.Phase
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
projectId | phase.projectID | string (hex-32) | Hash | yes | — |
acceptedTimestamp | phase.acceptedTimestamp | number | int | yes | — |
PillarEpochHistory
Import: znn.model.models.PillarEpochHistory
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
name | name | string | str | yes | — |
epoch | epoch | number | int | yes | — |
giveBlockRewardPercentage | giveBlockRewardPercentage | number | int | yes | — |
giveDelegateRewardPercentage | giveDelegateRewardPercentage | number | int | yes | — |
producedBlockNum | producedBlockNum | number | int | yes | — |
expectedBlockNum | expectedBlockNum | number | int | yes | — |
weight | weight | decimal-string (base-10) | int | yes | — |
PillarEpochHistoryList
Import: znn.model.models.PillarEpochHistoryList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | yes | — |
list | list | array | list[PillarEpochHistory] | yes | — |
PillarEpochStats
Import: znn.model.models.PillarEpochStats
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
producedMomentums | producedMomentums | number | int | yes | — |
expectedMomentums | expectedMomentums | number | int | yes | — |
PillarInfo
Import: znn.model.models.PillarInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
name | name | string | str | yes | — |
rank | rank | number | int | yes | — |
type | type | number | int | yes | — |
ownerAddress | ownerAddress | string (bech32-address) | Address | yes | — |
producerAddress | producerAddress | string (bech32-address) | Address | yes | — |
withdrawAddress | withdrawAddress | string (bech32-address) | Address | yes | — |
giveMomentumRewardPercentage | giveMomentumRewardPercentage | number | int | yes | — |
giveDelegateRewardPercentage | giveDelegateRewardPercentage | number | int | yes | — |
isRevocable | isRevocable | boolean | bool | yes | — |
revokeCooldown | revokeCooldown | number | int | yes | — |
revokeTimestamp | revokeTimestamp | number | int | yes | — |
currentStats | currentStats | model | PillarEpochStats | yes | — |
weight | weight | decimal-string (base-10) | int | yes | — |
PillarInfoList
Import: znn.model.models.PillarInfoList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | yes | — |
list | list | array | list[PillarInfo] | yes | — |
PillarVote
Import: znn.model.models.PillarVote
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
id | id | string (hex-32) | Hash | yes | — |
name | name | string | str | yes | — |
vote | vote | number | int | yes | — |
PlasmaInfo
Import: znn.model.models.PlasmaInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
currentPlasma | currentPlasma | number | int | yes | — |
maxPlasma | maxPlasma | number | int | yes | — |
qsrAmount | qsrAmount | decimal-string (base-10) | int | yes | — |
ProcessInfo
Import: znn.model.models.ProcessInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
commit | commit | string | str | yes | — |
version | version | string | str | yes | — |
Project
Import: znn.model.models.Project
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
owner | owner | string (bech32-address) | Address | yes | — |
lastUpdateTimestamp | lastUpdateTimestamp | number | int | yes | — |
phaseIds | phaseIds | array | list[Hash] | yes | — |
phases | phases | array | list[Phase] | yes | — |
ProjectList
Import: znn.model.models.ProjectList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | yes | — |
list | list | array | list[Project] | yes | — |
RewardDeposit
Import: znn.model.models.RewardDeposit
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
address | address | string (bech32-address) | Address | yes | — |
znnAmount | znnAmount | decimal-string (base-10) | int | yes | — |
qsrAmount | qsrAmount | decimal-string (base-10) | int | yes | — |
RewardHistoryEntry
Import: znn.model.models.RewardHistoryEntry
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
epoch | epoch | number | int | yes | — |
znnAmount | znnAmount | decimal-string (base-10) | int | yes | — |
qsrAmount | qsrAmount | decimal-string (base-10) | int | yes | — |
RewardHistoryList
Import: znn.model.models.RewardHistoryList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | yes | — |
list | list | array | list[RewardHistoryEntry] | yes | — |
SecurityInfo
Import: znn.model.models.SecurityInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
guardians | guardians | array | list[Address] | yes | — |
guardiansVotes | guardiansVotes | array | list[Address] | yes | — |
administratorDelay | administratorDelay | number | int | yes | — |
softDelay | softDelay | number | int | yes | — |
SentinelInfo
Import: znn.model.models.SentinelInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
owner | owner | string (bech32-address) | Address | yes | — |
registrationTimestamp | registrationTimestamp | number | int | yes | — |
isRevocable | isRevocable | boolean | bool | yes | — |
revokeCooldown | revokeCooldown | number | int | yes | — |
active | active | boolean | bool | yes | — |
SentinelInfoList
Import: znn.model.models.SentinelInfoList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | yes | — |
list | list | array | list[SentinelInfo] | yes | — |
Spork
Import: znn.model.models.Spork
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
id | id | string (hex-32) | Hash | yes | — |
name | name | string | str | yes | — |
description | description | string | str | yes | — |
activated | activated | boolean | bool | yes | — |
enforcementHeight | enforcementHeight | number | int | yes | — |
SporkList
Import: znn.model.models.SporkList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | yes | — |
list | list | array | list[Spork] | yes | — |
StakeEntry
Import: znn.model.models.StakeEntry
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
amount | amount | decimal-string (base-10) | int | yes | — |
weightedAmount | weightedAmount | decimal-string (base-10) | int | yes | — |
startTimestamp | startTimestamp | number | int | yes | — |
expirationTimestamp | expirationTimestamp | number | int | yes | — |
address | address | string (bech32-address) | Address | yes | — |
id | id | string (hex-32) | Hash | yes | — |
StakeList
Import: znn.model.models.StakeList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
totalAmount | totalAmount | decimal-string (base-10) | int | yes | — |
totalWeightedAmount | totalWeightedAmount | decimal-string (base-10) | int | yes | — |
count | count | number | int | yes | — |
list | list | array | list[StakeEntry] | yes | — |
SwapAssetEntry
Import: znn.model.models.SwapAssetEntry
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
keyIdHash | keyIdHash | string (hex-32) | Hash | yes | — |
qsr | qsr | decimal-string (base-10) | int | yes | — |
znn | znn | decimal-string (base-10) | int | yes | — |
SwapAssetList
Import: znn.model.models.SwapAssetList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
list | list | object | dict[str, SwapAssetEntry] | no | {} |
SwapLegacyPillarEntry
Import: znn.model.models.SwapLegacyPillarEntry
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
numPillars | numPillars | number | int | yes | — |
keyIdHash | keyIdHash | string (hex-32) | Hash | yes | — |
SwapLegacyPillarList
Import: znn.model.models.SwapLegacyPillarList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
list | `` | array | list[SwapLegacyPillarEntry] | no | [] |
SyncInfo
Import: znn.model.models.SyncInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
state | state | model | SyncState | yes | — |
currentHeight | currentHeight | number | int | yes | — |
targetHeight | targetHeight | number | int | yes | — |
TimeChallengeInfo
Import: znn.model.models.TimeChallengeInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
methodName | MethodName | string | str | yes | — |
paramsHash | ParamsHash | string (hex-32) | Hash | yes | — |
challengeStartHeight | ChallengeStartHeight | number | int | yes | — |
TimeChallengesList
Import: znn.model.models.TimeChallengesList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | yes | — |
list | list | array | list[TimeChallengeInfo] | yes | — |
Token
Import: znn.model.models.Token
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
name | name | string | str | yes | — |
symbol | symbol | string | str | yes | — |
domain | domain | string | str | yes | — |
totalSupply | totalSupply | decimal-string (base-10) | int | yes | — |
decimals | decimals | number | int | yes | — |
owner | owner | string (bech32-address) | Address | yes | — |
tokenStandard | tokenStandard | string (bech32-token-standard) | TokenStandard | yes | — |
maxSupply | maxSupply | decimal-string (base-10) | int | yes | — |
isBurnable | isBurnable | boolean | bool | yes | — |
isMintable | isMintable | boolean | bool | yes | — |
isUtility | isUtility | boolean | bool | yes | — |
TokenList
Import: znn.model.models.TokenList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | yes | — |
list | list | array | list[Token] | yes | — |
TokenPair
Import: znn.model.models.TokenPair
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
tokenStandard | tokenStandard | string (bech32-token-standard) | TokenStandard | yes | — |
tokenAddress | tokenAddress | string | str | yes | — |
bridgeable | bridgeable | boolean | bool | yes | — |
redeemable | redeemable | boolean | bool | yes | — |
owned | owned | boolean | bool | yes | — |
minAmount | minAmount | decimal-string (base-10) | int | yes | — |
feePercentage | feePercentage | number | int | yes | — |
redeemDelay | redeemDelay | number | int | yes | — |
metadata | metadata | string | str | yes | — |
TokenStandard
Runtime class: znn.model.primitives.token_standard.TokenStandard
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
core | core | string (model-specific-binary) | str | yes | — |
TokenTuple
Import: znn.model.models.TokenTuple
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
tokenStandard | tokenStandard | string (bech32-token-standard) | TokenStandard | yes | — |
znnPercentage | znnPercentage | number | int | yes | — |
qsrPercentage | qsrPercentage | number | int | yes | — |
minAmount | minAmount | decimal-string (base-10) | int | yes | — |
UncollectedReward
Import: znn.model.models.UncollectedReward
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
address | address | string (bech32-address) | Address | yes | — |
znnAmount | znnAmount | decimal-string (base-10) | int | yes | — |
qsrAmount | qsrAmount | decimal-string (base-10) | int | yes | — |
UnwrapTokenRequest
Import: znn.model.models.UnwrapTokenRequest
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
registrationMomentumHeight | registrationMomentumHeight | number | int | yes | — |
networkClass | networkClass | number | int | yes | — |
chainId | chainId | number | int | yes | — |
transactionHash | transactionHash | string (hex-32) | Hash | yes | — |
logIndex | logIndex | number | int | yes | — |
toAddress | toAddress | string (bech32-address) | Address | yes | — |
tokenAddress | tokenAddress | string | str | yes | — |
tokenStandard | tokenStandard | string (bech32-token-standard) | TokenStandard | yes | — |
amount | amount | decimal-string (base-10) | int | yes | — |
signature | signature | string | str | yes | — |
redeemed | redeemed | number | int | yes | — |
revoked | revoked | number | int | yes | — |
redeemableIn | redeemableIn | number | int | yes | — |
UnwrapTokenRequestList
Import: znn.model.models.UnwrapTokenRequestList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | yes | — |
list | list | array | list[UnwrapTokenRequest] | yes | — |
VoteBreakdown
Import: znn.model.models.VoteBreakdown
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
id | id | string (hex-32) | Hash | yes | — |
yes | yes | number | int | yes | — |
no | no | number | int | yes | — |
total | total | number | int | yes | — |
WrapTokenRequest
Import: znn.model.models.WrapTokenRequest
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
networkClass | networkClass | number | int | yes | — |
chainId | chainId | number | int | yes | — |
id | id | string (hex-32) | Hash | yes | — |
toAddress | toAddress | string | str | yes | — |
tokenStandard | tokenStandard | string (bech32-token-standard) | TokenStandard | yes | — |
tokenAddress | tokenAddress | string | str | yes | — |
amount | amount | decimal-string (base-10) | int | yes | — |
fee | fee | decimal-string (base-10) | int | yes | — |
signature | signature | string | str | yes | — |
creationMomentumHeight | creationMomentumHeight | number | int | yes | — |
confirmationsToFinality | confirmationsToFinality | number | int | yes | — |
WrapTokenRequestList
Import: znn.model.models.WrapTokenRequestList
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
count | count | number | int | yes | — |
list | list | array | list[WrapTokenRequest] | yes | — |
ZtsFeesInfo
Import: znn.model.models.ZtsFeesInfo
| Python attribute | Wire key | Wire type | Decoded Python type | Required | Default |
|---|---|---|---|---|---|
tokenStandard | tokenStandard | string (bech32-token-standard) | TokenStandard | yes | — |
accumulatedFee | accumulatedFee | decimal-string (base-10) | int | yes | — |
Enum reference
AcceleratorProjectStatus
voting=0, active=1, paid=2, closed=3, completed=4
AcceleratorProjectVote
yes=0, no=1, abstain=2
BlockTypeEnum
Unknown=0, GenesisReceive=1, UserSend=2, UserReceive=3, ContractSend=4, ContractReceive=5
ReceiveBlockTypeEnum
GenesisReceive=1, UserReceive=3, ContractReceive=5
SendBlockTypeEnum
UserSend=2, ContractSend=4
SyncState
Unknown=0, Syncing=1, SyncDone=2, NotEnoughPeers=3