@nemtus/symbol-rest-api-client-fetch 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/api/apis/AccountRoutesApi.d.ts +94 -1
- package/cjs/api/apis/AccountRoutesApi.js +67 -28
- package/cjs/api/apis/BlockRoutesApi.d.ts +94 -1
- package/cjs/api/apis/BlockRoutesApi.js +68 -30
- package/cjs/api/apis/ChainRoutesApi.d.ts +5 -1
- package/cjs/api/apis/ChainRoutesApi.js +16 -7
- package/cjs/api/apis/FinalizationRoutesApi.d.ts +17 -1
- package/cjs/api/apis/FinalizationRoutesApi.js +33 -15
- package/cjs/api/apis/HashLockRoutesApi.d.ts +126 -1
- package/cjs/api/apis/HashLockRoutesApi.js +83 -35
- package/cjs/api/apis/MetadataRoutesApi.d.ts +107 -3
- package/cjs/api/apis/MetadataRoutesApi.js +82 -34
- package/cjs/api/apis/MosaicRoutesApi.d.ts +71 -1
- package/cjs/api/apis/MosaicRoutesApi.js +67 -28
- package/cjs/api/apis/MultisigRoutesApi.d.ts +24 -1
- package/cjs/api/apis/MultisigRoutesApi.js +51 -22
- package/cjs/api/apis/NamespaceRoutesApi.d.ts +108 -1
- package/cjs/api/apis/NamespaceRoutesApi.js +104 -42
- package/cjs/api/apis/NetworkRoutesApi.d.ts +44 -1
- package/cjs/api/apis/NetworkRoutesApi.js +138 -53
- package/cjs/api/apis/NodeRoutesApi.d.ts +38 -1
- package/cjs/api/apis/NodeRoutesApi.js +125 -48
- package/cjs/api/apis/ReceiptRoutesApi.d.ts +171 -1
- package/cjs/api/apis/ReceiptRoutesApi.js +47 -19
- package/cjs/api/apis/RestrictionAccountRoutesApi.d.ts +81 -1
- package/cjs/api/apis/RestrictionAccountRoutesApi.js +67 -28
- package/cjs/api/apis/RestrictionMosaicRoutesApi.d.ts +78 -1
- package/cjs/api/apis/RestrictionMosaicRoutesApi.js +67 -28
- package/cjs/api/apis/SecretLockRoutesApi.d.ts +132 -1
- package/cjs/api/apis/SecretLockRoutesApi.js +83 -35
- package/cjs/api/apis/TransactionRoutesApi.d.ts +416 -1
- package/cjs/api/apis/TransactionRoutesApi.js +195 -82
- package/cjs/api/apis/TransactionStatusRoutesApi.d.ts +16 -1
- package/cjs/api/apis/TransactionStatusRoutesApi.js +34 -15
- package/cjs/api/models/AccountAddressRestrictionTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/AccountAddressRestrictionTransactionDTO.d.ts +7 -41
- package/cjs/api/models/AccountDTO.d.ts +4 -32
- package/cjs/api/models/AccountIds.d.ts +1 -5
- package/cjs/api/models/AccountInfoDTO.d.ts +1 -5
- package/cjs/api/models/AccountKeyLinkNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/AccountKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/cjs/api/models/AccountKeyLinkTransactionDTO.d.ts +7 -39
- package/cjs/api/models/AccountLinkPublicKeyDTO.d.ts +1 -3
- package/cjs/api/models/AccountLinkVotingKeyDTO.d.ts +3 -15
- package/cjs/api/models/AccountLinkVotingKeysDTO.d.ts +1 -3
- package/cjs/api/models/AccountMetadataTransactionBodyDTO.d.ts +1 -11
- package/cjs/api/models/AccountMetadataTransactionDTO.d.ts +7 -45
- package/cjs/api/models/AccountMosaicRestrictionTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/AccountMosaicRestrictionTransactionDTO.d.ts +7 -41
- package/cjs/api/models/AccountNamesDTO.d.ts +2 -8
- package/cjs/api/models/AccountOperationRestrictionTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/AccountOperationRestrictionTransactionDTO.d.ts +7 -41
- package/cjs/api/models/AccountOrderByEnum.js +1 -1
- package/cjs/api/models/AccountPage.d.ts +1 -5
- package/cjs/api/models/AccountRestrictionDTO.d.ts +1 -5
- package/cjs/api/models/AccountRestrictionDTOValuesInner.d.ts +1 -1
- package/cjs/api/models/AccountRestrictionFlagsEnum.js +1 -1
- package/cjs/api/models/AccountRestrictionNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/AccountRestrictionsDTO.d.ts +1 -7
- package/cjs/api/models/AccountRestrictionsInfoDTO.d.ts +1 -3
- package/cjs/api/models/AccountRestrictionsPage.d.ts +1 -5
- package/cjs/api/models/AccountTypeEnum.js +1 -1
- package/cjs/api/models/AccountsNamesDTO.d.ts +1 -3
- package/cjs/api/models/ActivityBucketDTO.d.ts +13 -25
- package/cjs/api/models/AddressAliasTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/AddressAliasTransactionDTO.d.ts +7 -41
- package/cjs/api/models/Addresses.d.ts +1 -3
- package/cjs/api/models/AggregateNetworkPropertiesDTO.d.ts +1 -11
- package/cjs/api/models/AggregateTransactionBodyDTO.d.ts +1 -5
- package/cjs/api/models/AggregateTransactionBodyExtendedDTO.d.ts +1 -7
- package/cjs/api/models/AggregateTransactionDTO.d.ts +7 -39
- package/cjs/api/models/AggregateTransactionExtendedDTO.d.ts +7 -41
- package/cjs/api/models/AliasActionEnum.js +1 -1
- package/cjs/api/models/AliasDTO.d.ts +3 -14
- package/cjs/api/models/AliasTypeEnum.js +1 -1
- package/cjs/api/models/AnnounceTransactionInfoDTO.d.ts +1 -3
- package/cjs/api/models/BalanceChangeReceiptDTO.d.ts +4 -23
- package/cjs/api/models/BalanceTransferReceiptDTO.d.ts +5 -28
- package/cjs/api/models/BlockDTO.d.ts +8 -45
- package/cjs/api/models/BlockInfoDTO.d.ts +1 -7
- package/cjs/api/models/BlockInfoDTOBlock.d.ts +12 -64
- package/cjs/api/models/BlockMetaDTO.d.ts +2 -20
- package/cjs/api/models/BlockOrderByEnum.js +1 -1
- package/cjs/api/models/BlockPage.d.ts +1 -5
- package/cjs/api/models/BmTreeSignature.d.ts +1 -5
- package/cjs/api/models/BsonLongDTO.d.ts +1 -7
- package/cjs/api/models/ChainInfoDTO.d.ts +5 -16
- package/cjs/api/models/ChainPropertiesDTO.d.ts +3 -71
- package/cjs/api/models/CommunicationTimestampsDTO.d.ts +4 -26
- package/cjs/api/models/CompositeHashes.d.ts +1 -3
- package/cjs/api/models/Cosignature.d.ts +3 -11
- package/cjs/api/models/CosignatureDTO.d.ts +1 -7
- package/cjs/api/models/DeploymentDTO.d.ts +1 -7
- package/cjs/api/models/EmbeddedAccountAddressRestrictionTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedAccountKeyLinkTransactionDTO.d.ts +2 -14
- package/cjs/api/models/EmbeddedAccountMetadataTransactionDTO.d.ts +2 -20
- package/cjs/api/models/EmbeddedAccountMosaicRestrictionTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedAccountOperationRestrictionTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedAddressAliasTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedHashLockTransactionDTO.d.ts +2 -18
- package/cjs/api/models/EmbeddedMosaicAddressRestrictionTransactionDTO.d.ts +2 -20
- package/cjs/api/models/EmbeddedMosaicAliasTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedMosaicDefinitionTransactionDTO.d.ts +3 -23
- package/cjs/api/models/EmbeddedMosaicGlobalRestrictionTransactionDTO.d.ts +2 -24
- package/cjs/api/models/EmbeddedMosaicMetadataTransactionDTO.d.ts +2 -22
- package/cjs/api/models/EmbeddedMosaicSupplyChangeTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedMosaicSupplyRevocationTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedMultisigAccountModificationTransactionDTO.d.ts +2 -18
- package/cjs/api/models/EmbeddedNamespaceMetadataTransactionDTO.d.ts +2 -22
- package/cjs/api/models/EmbeddedNamespaceRegistrationTransactionDTO.d.ts +2 -20
- package/cjs/api/models/EmbeddedNodeKeyLinkTransactionDTO.d.ts +2 -14
- package/cjs/api/models/EmbeddedSecretLockTransactionDTO.d.ts +2 -22
- package/cjs/api/models/EmbeddedSecretProofTransactionDTO.d.ts +2 -18
- package/cjs/api/models/EmbeddedTransactionBodyDTO.d.ts +1 -3
- package/cjs/api/models/EmbeddedTransactionDTO.d.ts +2 -10
- package/cjs/api/models/EmbeddedTransactionInfoDTO.d.ts +1 -7
- package/cjs/api/models/EmbeddedTransactionInfoDTOTransaction.d.ts +3 -107
- package/cjs/api/models/EmbeddedTransactionMetaDTO.d.ts +8 -43
- package/cjs/api/models/EmbeddedTransferTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedVotingKeyLinkTransactionDTO.d.ts +2 -18
- package/cjs/api/models/EmbeddedVrfKeyLinkTransactionDTO.d.ts +2 -14
- package/cjs/api/models/EntityDTO.d.ts +2 -10
- package/cjs/api/models/FinalizationProofDTO.d.ts +1 -13
- package/cjs/api/models/FinalizedBlockDTO.d.ts +1 -9
- package/cjs/api/models/ForkHeightsDTO.d.ts +1 -15
- package/cjs/api/models/HashLockEntryDTO.d.ts +6 -31
- package/cjs/api/models/HashLockInfoDTO.d.ts +1 -5
- package/cjs/api/models/HashLockNetworkPropertiesDTO.d.ts +1 -5
- package/cjs/api/models/HashLockPage.d.ts +1 -5
- package/cjs/api/models/HashLockTransactionBodyDTO.d.ts +1 -9
- package/cjs/api/models/HashLockTransactionDTO.d.ts +7 -43
- package/cjs/api/models/ImportanceBlockDTO.d.ts +12 -64
- package/cjs/api/models/InflationReceiptDTO.d.ts +3 -18
- package/cjs/api/models/LinkActionEnum.js +1 -1
- package/cjs/api/models/LockHashAlgorithmEnum.js +1 -1
- package/cjs/api/models/LockStatus.js +1 -1
- package/cjs/api/models/MerklePathItemDTO.d.ts +2 -6
- package/cjs/api/models/MerkleProofInfoDTO.d.ts +1 -3
- package/cjs/api/models/MerkleStateInfoDTO.d.ts +1 -5
- package/cjs/api/models/MerkleStateInfoDTOTreeInner.d.ts +3 -21
- package/cjs/api/models/MerkleTreeBranchDTO.d.ts +2 -16
- package/cjs/api/models/MerkleTreeBranchLinkDTO.d.ts +2 -6
- package/cjs/api/models/MerkleTreeLeafDTO.d.ts +2 -14
- package/cjs/api/models/MerkleTreeNodeTypeEnum.js +1 -1
- package/cjs/api/models/MessageGroup.d.ts +2 -12
- package/cjs/api/models/MetadataEntryDTO.d.ts +7 -25
- package/cjs/api/models/MetadataEntryDTOTargetId.d.ts +1 -1
- package/cjs/api/models/MetadataInfoDTO.d.ts +1 -5
- package/cjs/api/models/MetadataNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/MetadataPage.d.ts +1 -5
- package/cjs/api/models/MetadataTypeEnum.js +1 -1
- package/cjs/api/models/ModelError.d.ts +1 -5
- package/cjs/api/models/Mosaic.d.ts +1 -5
- package/cjs/api/models/MosaicAddressRestrictionDTO.d.ts +1 -5
- package/cjs/api/models/MosaicAddressRestrictionEntryDTO.d.ts +1 -5
- package/cjs/api/models/MosaicAddressRestrictionEntryWrapperDTO.d.ts +4 -21
- package/cjs/api/models/MosaicAddressRestrictionTransactionBodyDTO.d.ts +1 -11
- package/cjs/api/models/MosaicAddressRestrictionTransactionDTO.d.ts +7 -45
- package/cjs/api/models/MosaicAliasTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/MosaicAliasTransactionDTO.d.ts +7 -41
- package/cjs/api/models/MosaicDTO.d.ts +7 -33
- package/cjs/api/models/MosaicDefinitionTransactionBodyDTO.d.ts +2 -14
- package/cjs/api/models/MosaicDefinitionTransactionDTO.d.ts +8 -48
- package/cjs/api/models/MosaicExpiryReceiptDTO.d.ts +2 -11
- package/cjs/api/models/MosaicGlobalRestrictionDTO.d.ts +1 -5
- package/cjs/api/models/MosaicGlobalRestrictionEntryDTO.d.ts +1 -5
- package/cjs/api/models/MosaicGlobalRestrictionEntryRestrictionDTO.d.ts +4 -10
- package/cjs/api/models/MosaicGlobalRestrictionEntryWrapperDTO.d.ts +3 -16
- package/cjs/api/models/MosaicGlobalRestrictionTransactionBodyDTO.d.ts +1 -15
- package/cjs/api/models/MosaicGlobalRestrictionTransactionDTO.d.ts +7 -49
- package/cjs/api/models/MosaicIds.d.ts +1 -3
- package/cjs/api/models/MosaicInfoDTO.d.ts +1 -5
- package/cjs/api/models/MosaicMetadataTransactionBodyDTO.d.ts +1 -13
- package/cjs/api/models/MosaicMetadataTransactionDTO.d.ts +7 -47
- package/cjs/api/models/MosaicNamesDTO.d.ts +2 -9
- package/cjs/api/models/MosaicNetworkPropertiesDTO.d.ts +5 -27
- package/cjs/api/models/MosaicPage.d.ts +1 -5
- package/cjs/api/models/MosaicRestrictionDTO.d.ts +1 -5
- package/cjs/api/models/MosaicRestrictionEntryTypeEnum.js +1 -1
- package/cjs/api/models/MosaicRestrictionNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/MosaicRestrictionTypeEnum.js +1 -1
- package/cjs/api/models/MosaicRestrictionsPage.d.ts +1 -5
- package/cjs/api/models/MosaicRestrictionsPageDataInner.d.ts +1 -5
- package/cjs/api/models/MosaicSupplyChangeActionEnum.js +1 -1
- package/cjs/api/models/MosaicSupplyChangeTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/MosaicSupplyChangeTransactionDTO.d.ts +7 -41
- package/cjs/api/models/MosaicSupplyRevocationTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/MosaicSupplyRevocationTransactionDTO.d.ts +7 -41
- package/cjs/api/models/MosaicsNamesDTO.d.ts +1 -3
- package/cjs/api/models/MultisigAccountGraphInfoDTO.d.ts +1 -5
- package/cjs/api/models/MultisigAccountInfoDTO.d.ts +1 -3
- package/cjs/api/models/MultisigAccountModificationTransactionBodyDTO.d.ts +1 -9
- package/cjs/api/models/MultisigAccountModificationTransactionDTO.d.ts +7 -43
- package/cjs/api/models/MultisigDTO.d.ts +3 -19
- package/cjs/api/models/MultisigNetworkPropertiesDTO.d.ts +1 -7
- package/cjs/api/models/NamespaceDTO.d.ts +8 -48
- package/cjs/api/models/NamespaceExpiryReceiptDTO.d.ts +2 -11
- package/cjs/api/models/NamespaceIds.d.ts +1 -3
- package/cjs/api/models/NamespaceInfoDTO.d.ts +1 -7
- package/cjs/api/models/NamespaceMetaDTO.d.ts +1 -5
- package/cjs/api/models/NamespaceMetadataTransactionBodyDTO.d.ts +1 -13
- package/cjs/api/models/NamespaceMetadataTransactionDTO.d.ts +7 -47
- package/cjs/api/models/NamespaceNameDTO.d.ts +3 -15
- package/cjs/api/models/NamespaceNetworkPropertiesDTO.d.ts +5 -43
- package/cjs/api/models/NamespacePage.d.ts +1 -5
- package/cjs/api/models/NamespaceRegistrationTransactionBodyDTO.d.ts +1 -11
- package/cjs/api/models/NamespaceRegistrationTransactionDTO.d.ts +7 -45
- package/cjs/api/models/NamespaceRegistrationTypeEnum.js +1 -1
- package/cjs/api/models/NetworkConfigurationDTO.d.ts +1 -13
- package/cjs/api/models/NetworkInflationDTO.d.ts +3 -13
- package/cjs/api/models/NetworkPropertiesDTO.d.ts +1 -11
- package/cjs/api/models/NetworkTypeDTO.d.ts +1 -5
- package/cjs/api/models/NetworkTypeDTO.js +1 -1
- package/cjs/api/models/NetworkTypeEnum.js +1 -1
- package/cjs/api/models/NodeHealthDTO.d.ts +1 -5
- package/cjs/api/models/NodeHealthInfoDTO.d.ts +1 -3
- package/cjs/api/models/NodeIdentityEqualityStrategy.js +1 -1
- package/cjs/api/models/NodeInfoDTO.d.ts +1 -19
- package/cjs/api/models/NodeKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/cjs/api/models/NodeKeyLinkTransactionDTO.d.ts +7 -39
- package/cjs/api/models/NodeStatusEnum.js +1 -1
- package/cjs/api/models/NodeTimeDTO.d.ts +1 -3
- package/cjs/api/models/Order.js +1 -1
- package/cjs/api/models/Pagination.d.ts +1 -5
- package/cjs/api/models/ParentPublicKeySignaturePair.d.ts +1 -5
- package/cjs/api/models/PluginsPropertiesDTO.d.ts +1 -23
- package/cjs/api/models/PositionEnum.js +1 -1
- package/cjs/api/models/ReceiptDTO.d.ts +1 -5
- package/cjs/api/models/ReceiptTypeEnum.js +1 -1
- package/cjs/api/models/RentalFeesDTO.d.ts +4 -22
- package/cjs/api/models/ResolutionEntryDTO.d.ts +1 -5
- package/cjs/api/models/ResolutionEntryDTOResolved.d.ts +1 -1
- package/cjs/api/models/ResolutionStatementDTO.d.ts +2 -10
- package/cjs/api/models/ResolutionStatementDTOUnresolved.d.ts +1 -1
- package/cjs/api/models/ResolutionStatementInfoDTO.d.ts +1 -7
- package/cjs/api/models/ResolutionStatementPage.d.ts +1 -5
- package/cjs/api/models/SecretLockEntryDTO.d.ts +10 -40
- package/cjs/api/models/SecretLockInfoDTO.d.ts +1 -5
- package/cjs/api/models/SecretLockNetworkPropertiesDTO.d.ts +1 -7
- package/cjs/api/models/SecretLockPage.d.ts +1 -5
- package/cjs/api/models/SecretLockTransactionBodyDTO.d.ts +1 -13
- package/cjs/api/models/SecretLockTransactionDTO.d.ts +7 -47
- package/cjs/api/models/SecretProofTransactionBodyDTO.d.ts +1 -9
- package/cjs/api/models/SecretProofTransactionDTO.d.ts +7 -43
- package/cjs/api/models/ServerDTO.d.ts +1 -5
- package/cjs/api/models/ServerInfoDTO.d.ts +1 -3
- package/cjs/api/models/SizePrefixedEntityDTO.d.ts +3 -5
- package/cjs/api/models/SourceDTO.d.ts +11 -9
- package/cjs/api/models/StageEnum.js +1 -1
- package/cjs/api/models/StatementMetaDTO.d.ts +2 -14
- package/cjs/api/models/StorageInfoDTO.d.ts +1 -9
- package/cjs/api/models/StorageInfoDatabaseDTO.d.ts +1 -11
- package/cjs/api/models/SupplementalPublicKeysDTO.d.ts +1 -9
- package/cjs/api/models/TransactionBodyDTO.d.ts +4 -20
- package/cjs/api/models/TransactionDTO.d.ts +7 -35
- package/cjs/api/models/TransactionFeesDTO.d.ts +6 -76
- package/cjs/api/models/TransactionGroupEnum.js +1 -1
- package/cjs/api/models/TransactionHashes.d.ts +1 -3
- package/cjs/api/models/TransactionIds.d.ts +1 -3
- package/cjs/api/models/TransactionInfoDTO.d.ts +1 -7
- package/cjs/api/models/TransactionInfoDTOMeta.d.ts +12 -49
- package/cjs/api/models/TransactionInfoDTOTransaction.d.ts +8 -138
- package/cjs/api/models/TransactionMetaDTO.d.ts +10 -41
- package/cjs/api/models/TransactionPage.d.ts +1 -5
- package/cjs/api/models/TransactionPayload.d.ts +1 -3
- package/cjs/api/models/TransactionStatementDTO.d.ts +2 -10
- package/cjs/api/models/TransactionStatementDTOReceiptsInner.d.ts +7 -39
- package/cjs/api/models/TransactionStatementInfoDTO.d.ts +1 -7
- package/cjs/api/models/TransactionStatementPage.d.ts +1 -5
- package/cjs/api/models/TransactionStatusDTO.d.ts +4 -26
- package/cjs/api/models/TransactionStatusEnum.js +1 -1
- package/cjs/api/models/TransactionTypeEnum.js +1 -1
- package/cjs/api/models/TransferNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/TransferTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/TransferTransactionDTO.d.ts +7 -41
- package/cjs/api/models/UnlockedAccountDTO.d.ts +1 -3
- package/cjs/api/models/UnresolvedMosaic.d.ts +1 -5
- package/cjs/api/models/VerifiableEntityDTO.d.ts +1 -3
- package/cjs/api/models/VotingKeyLinkTransactionBodyDTO.d.ts +1 -9
- package/cjs/api/models/VotingKeyLinkTransactionDTO.d.ts +7 -43
- package/cjs/api/models/VrfKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/cjs/api/models/VrfKeyLinkTransactionDTO.d.ts +7 -39
- package/cjs/api/runtime.d.ts +34 -1
- package/cjs/api/runtime.js +136 -4
- package/esm/api/apis/AccountRoutesApi.d.ts +94 -1
- package/esm/api/apis/AccountRoutesApi.js +54 -23
- package/esm/api/apis/BlockRoutesApi.d.ts +94 -1
- package/esm/api/apis/BlockRoutesApi.js +56 -26
- package/esm/api/apis/ChainRoutesApi.d.ts +5 -1
- package/esm/api/apis/ChainRoutesApi.js +13 -6
- package/esm/api/apis/FinalizationRoutesApi.d.ts +17 -1
- package/esm/api/apis/FinalizationRoutesApi.js +27 -13
- package/esm/api/apis/HashLockRoutesApi.d.ts +126 -1
- package/esm/api/apis/HashLockRoutesApi.js +67 -29
- package/esm/api/apis/MetadataRoutesApi.d.ts +107 -3
- package/esm/api/apis/MetadataRoutesApi.js +67 -29
- package/esm/api/apis/MosaicRoutesApi.d.ts +71 -1
- package/esm/api/apis/MosaicRoutesApi.js +54 -23
- package/esm/api/apis/MultisigRoutesApi.d.ts +24 -1
- package/esm/api/apis/MultisigRoutesApi.js +42 -19
- package/esm/api/apis/NamespaceRoutesApi.d.ts +108 -1
- package/esm/api/apis/NamespaceRoutesApi.js +83 -33
- package/esm/api/apis/NetworkRoutesApi.d.ts +44 -1
- package/esm/api/apis/NetworkRoutesApi.js +114 -47
- package/esm/api/apis/NodeRoutesApi.d.ts +38 -1
- package/esm/api/apis/NodeRoutesApi.js +102 -41
- package/esm/api/apis/ReceiptRoutesApi.d.ts +171 -1
- package/esm/api/apis/ReceiptRoutesApi.js +38 -16
- package/esm/api/apis/RestrictionAccountRoutesApi.d.ts +81 -1
- package/esm/api/apis/RestrictionAccountRoutesApi.js +54 -23
- package/esm/api/apis/RestrictionMosaicRoutesApi.d.ts +78 -1
- package/esm/api/apis/RestrictionMosaicRoutesApi.js +54 -23
- package/esm/api/apis/SecretLockRoutesApi.d.ts +132 -1
- package/esm/api/apis/SecretLockRoutesApi.js +67 -29
- package/esm/api/apis/TransactionRoutesApi.d.ts +416 -1
- package/esm/api/apis/TransactionRoutesApi.js +153 -64
- package/esm/api/apis/TransactionStatusRoutesApi.d.ts +16 -1
- package/esm/api/apis/TransactionStatusRoutesApi.js +27 -12
- package/esm/api/models/AccountAddressRestrictionTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/AccountAddressRestrictionTransactionDTO.d.ts +7 -41
- package/esm/api/models/AccountDTO.d.ts +4 -32
- package/esm/api/models/AccountIds.d.ts +1 -5
- package/esm/api/models/AccountInfoDTO.d.ts +1 -5
- package/esm/api/models/AccountKeyLinkNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/AccountKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/esm/api/models/AccountKeyLinkTransactionDTO.d.ts +7 -39
- package/esm/api/models/AccountLinkPublicKeyDTO.d.ts +1 -3
- package/esm/api/models/AccountLinkVotingKeyDTO.d.ts +3 -15
- package/esm/api/models/AccountLinkVotingKeysDTO.d.ts +1 -3
- package/esm/api/models/AccountMetadataTransactionBodyDTO.d.ts +1 -11
- package/esm/api/models/AccountMetadataTransactionDTO.d.ts +7 -45
- package/esm/api/models/AccountMosaicRestrictionTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/AccountMosaicRestrictionTransactionDTO.d.ts +7 -41
- package/esm/api/models/AccountNamesDTO.d.ts +2 -8
- package/esm/api/models/AccountOperationRestrictionTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/AccountOperationRestrictionTransactionDTO.d.ts +7 -41
- package/esm/api/models/AccountOrderByEnum.js +1 -1
- package/esm/api/models/AccountPage.d.ts +1 -5
- package/esm/api/models/AccountRestrictionDTO.d.ts +1 -5
- package/esm/api/models/AccountRestrictionDTOValuesInner.d.ts +1 -1
- package/esm/api/models/AccountRestrictionFlagsEnum.js +1 -1
- package/esm/api/models/AccountRestrictionNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/AccountRestrictionsDTO.d.ts +1 -7
- package/esm/api/models/AccountRestrictionsInfoDTO.d.ts +1 -3
- package/esm/api/models/AccountRestrictionsPage.d.ts +1 -5
- package/esm/api/models/AccountTypeEnum.js +1 -1
- package/esm/api/models/AccountsNamesDTO.d.ts +1 -3
- package/esm/api/models/ActivityBucketDTO.d.ts +13 -25
- package/esm/api/models/AddressAliasTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/AddressAliasTransactionDTO.d.ts +7 -41
- package/esm/api/models/Addresses.d.ts +1 -3
- package/esm/api/models/AggregateNetworkPropertiesDTO.d.ts +1 -11
- package/esm/api/models/AggregateTransactionBodyDTO.d.ts +1 -5
- package/esm/api/models/AggregateTransactionBodyExtendedDTO.d.ts +1 -7
- package/esm/api/models/AggregateTransactionDTO.d.ts +7 -39
- package/esm/api/models/AggregateTransactionExtendedDTO.d.ts +7 -41
- package/esm/api/models/AliasActionEnum.js +1 -1
- package/esm/api/models/AliasDTO.d.ts +3 -14
- package/esm/api/models/AliasTypeEnum.js +1 -1
- package/esm/api/models/AnnounceTransactionInfoDTO.d.ts +1 -3
- package/esm/api/models/BalanceChangeReceiptDTO.d.ts +4 -23
- package/esm/api/models/BalanceTransferReceiptDTO.d.ts +5 -28
- package/esm/api/models/BlockDTO.d.ts +8 -45
- package/esm/api/models/BlockInfoDTO.d.ts +1 -7
- package/esm/api/models/BlockInfoDTOBlock.d.ts +12 -64
- package/esm/api/models/BlockMetaDTO.d.ts +2 -20
- package/esm/api/models/BlockOrderByEnum.js +1 -1
- package/esm/api/models/BlockPage.d.ts +1 -5
- package/esm/api/models/BmTreeSignature.d.ts +1 -5
- package/esm/api/models/BsonLongDTO.d.ts +1 -7
- package/esm/api/models/ChainInfoDTO.d.ts +5 -16
- package/esm/api/models/ChainPropertiesDTO.d.ts +3 -71
- package/esm/api/models/CommunicationTimestampsDTO.d.ts +4 -26
- package/esm/api/models/CompositeHashes.d.ts +1 -3
- package/esm/api/models/Cosignature.d.ts +3 -11
- package/esm/api/models/CosignatureDTO.d.ts +1 -7
- package/esm/api/models/DeploymentDTO.d.ts +1 -7
- package/esm/api/models/EmbeddedAccountAddressRestrictionTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedAccountKeyLinkTransactionDTO.d.ts +2 -14
- package/esm/api/models/EmbeddedAccountMetadataTransactionDTO.d.ts +2 -20
- package/esm/api/models/EmbeddedAccountMosaicRestrictionTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedAccountOperationRestrictionTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedAddressAliasTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedHashLockTransactionDTO.d.ts +2 -18
- package/esm/api/models/EmbeddedMosaicAddressRestrictionTransactionDTO.d.ts +2 -20
- package/esm/api/models/EmbeddedMosaicAliasTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedMosaicDefinitionTransactionDTO.d.ts +3 -23
- package/esm/api/models/EmbeddedMosaicGlobalRestrictionTransactionDTO.d.ts +2 -24
- package/esm/api/models/EmbeddedMosaicMetadataTransactionDTO.d.ts +2 -22
- package/esm/api/models/EmbeddedMosaicSupplyChangeTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedMosaicSupplyRevocationTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedMultisigAccountModificationTransactionDTO.d.ts +2 -18
- package/esm/api/models/EmbeddedNamespaceMetadataTransactionDTO.d.ts +2 -22
- package/esm/api/models/EmbeddedNamespaceRegistrationTransactionDTO.d.ts +2 -20
- package/esm/api/models/EmbeddedNodeKeyLinkTransactionDTO.d.ts +2 -14
- package/esm/api/models/EmbeddedSecretLockTransactionDTO.d.ts +2 -22
- package/esm/api/models/EmbeddedSecretProofTransactionDTO.d.ts +2 -18
- package/esm/api/models/EmbeddedTransactionBodyDTO.d.ts +1 -3
- package/esm/api/models/EmbeddedTransactionDTO.d.ts +2 -10
- package/esm/api/models/EmbeddedTransactionInfoDTO.d.ts +1 -7
- package/esm/api/models/EmbeddedTransactionInfoDTOTransaction.d.ts +3 -107
- package/esm/api/models/EmbeddedTransactionMetaDTO.d.ts +8 -43
- package/esm/api/models/EmbeddedTransferTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedVotingKeyLinkTransactionDTO.d.ts +2 -18
- package/esm/api/models/EmbeddedVrfKeyLinkTransactionDTO.d.ts +2 -14
- package/esm/api/models/EntityDTO.d.ts +2 -10
- package/esm/api/models/FinalizationProofDTO.d.ts +1 -13
- package/esm/api/models/FinalizedBlockDTO.d.ts +1 -9
- package/esm/api/models/ForkHeightsDTO.d.ts +1 -15
- package/esm/api/models/HashLockEntryDTO.d.ts +6 -31
- package/esm/api/models/HashLockInfoDTO.d.ts +1 -5
- package/esm/api/models/HashLockNetworkPropertiesDTO.d.ts +1 -5
- package/esm/api/models/HashLockPage.d.ts +1 -5
- package/esm/api/models/HashLockTransactionBodyDTO.d.ts +1 -9
- package/esm/api/models/HashLockTransactionDTO.d.ts +7 -43
- package/esm/api/models/ImportanceBlockDTO.d.ts +12 -64
- package/esm/api/models/InflationReceiptDTO.d.ts +3 -18
- package/esm/api/models/LinkActionEnum.js +1 -1
- package/esm/api/models/LockHashAlgorithmEnum.js +1 -1
- package/esm/api/models/LockStatus.js +1 -1
- package/esm/api/models/MerklePathItemDTO.d.ts +2 -6
- package/esm/api/models/MerkleProofInfoDTO.d.ts +1 -3
- package/esm/api/models/MerkleStateInfoDTO.d.ts +1 -5
- package/esm/api/models/MerkleStateInfoDTOTreeInner.d.ts +3 -21
- package/esm/api/models/MerkleTreeBranchDTO.d.ts +2 -16
- package/esm/api/models/MerkleTreeBranchLinkDTO.d.ts +2 -6
- package/esm/api/models/MerkleTreeLeafDTO.d.ts +2 -14
- package/esm/api/models/MerkleTreeNodeTypeEnum.js +1 -1
- package/esm/api/models/MessageGroup.d.ts +2 -12
- package/esm/api/models/MetadataEntryDTO.d.ts +7 -25
- package/esm/api/models/MetadataEntryDTOTargetId.d.ts +1 -1
- package/esm/api/models/MetadataInfoDTO.d.ts +1 -5
- package/esm/api/models/MetadataNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/MetadataPage.d.ts +1 -5
- package/esm/api/models/MetadataTypeEnum.js +1 -1
- package/esm/api/models/ModelError.d.ts +1 -5
- package/esm/api/models/Mosaic.d.ts +1 -5
- package/esm/api/models/MosaicAddressRestrictionDTO.d.ts +1 -5
- package/esm/api/models/MosaicAddressRestrictionEntryDTO.d.ts +1 -5
- package/esm/api/models/MosaicAddressRestrictionEntryWrapperDTO.d.ts +4 -21
- package/esm/api/models/MosaicAddressRestrictionTransactionBodyDTO.d.ts +1 -11
- package/esm/api/models/MosaicAddressRestrictionTransactionDTO.d.ts +7 -45
- package/esm/api/models/MosaicAliasTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/MosaicAliasTransactionDTO.d.ts +7 -41
- package/esm/api/models/MosaicDTO.d.ts +7 -33
- package/esm/api/models/MosaicDefinitionTransactionBodyDTO.d.ts +2 -14
- package/esm/api/models/MosaicDefinitionTransactionDTO.d.ts +8 -48
- package/esm/api/models/MosaicExpiryReceiptDTO.d.ts +2 -11
- package/esm/api/models/MosaicGlobalRestrictionDTO.d.ts +1 -5
- package/esm/api/models/MosaicGlobalRestrictionEntryDTO.d.ts +1 -5
- package/esm/api/models/MosaicGlobalRestrictionEntryRestrictionDTO.d.ts +4 -10
- package/esm/api/models/MosaicGlobalRestrictionEntryWrapperDTO.d.ts +3 -16
- package/esm/api/models/MosaicGlobalRestrictionTransactionBodyDTO.d.ts +1 -15
- package/esm/api/models/MosaicGlobalRestrictionTransactionDTO.d.ts +7 -49
- package/esm/api/models/MosaicIds.d.ts +1 -3
- package/esm/api/models/MosaicInfoDTO.d.ts +1 -5
- package/esm/api/models/MosaicMetadataTransactionBodyDTO.d.ts +1 -13
- package/esm/api/models/MosaicMetadataTransactionDTO.d.ts +7 -47
- package/esm/api/models/MosaicNamesDTO.d.ts +2 -9
- package/esm/api/models/MosaicNetworkPropertiesDTO.d.ts +5 -27
- package/esm/api/models/MosaicPage.d.ts +1 -5
- package/esm/api/models/MosaicRestrictionDTO.d.ts +1 -5
- package/esm/api/models/MosaicRestrictionEntryTypeEnum.js +1 -1
- package/esm/api/models/MosaicRestrictionNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/MosaicRestrictionTypeEnum.js +1 -1
- package/esm/api/models/MosaicRestrictionsPage.d.ts +1 -5
- package/esm/api/models/MosaicRestrictionsPageDataInner.d.ts +1 -5
- package/esm/api/models/MosaicSupplyChangeActionEnum.js +1 -1
- package/esm/api/models/MosaicSupplyChangeTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/MosaicSupplyChangeTransactionDTO.d.ts +7 -41
- package/esm/api/models/MosaicSupplyRevocationTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/MosaicSupplyRevocationTransactionDTO.d.ts +7 -41
- package/esm/api/models/MosaicsNamesDTO.d.ts +1 -3
- package/esm/api/models/MultisigAccountGraphInfoDTO.d.ts +1 -5
- package/esm/api/models/MultisigAccountInfoDTO.d.ts +1 -3
- package/esm/api/models/MultisigAccountModificationTransactionBodyDTO.d.ts +1 -9
- package/esm/api/models/MultisigAccountModificationTransactionDTO.d.ts +7 -43
- package/esm/api/models/MultisigDTO.d.ts +3 -19
- package/esm/api/models/MultisigNetworkPropertiesDTO.d.ts +1 -7
- package/esm/api/models/NamespaceDTO.d.ts +8 -48
- package/esm/api/models/NamespaceExpiryReceiptDTO.d.ts +2 -11
- package/esm/api/models/NamespaceIds.d.ts +1 -3
- package/esm/api/models/NamespaceInfoDTO.d.ts +1 -7
- package/esm/api/models/NamespaceMetaDTO.d.ts +1 -5
- package/esm/api/models/NamespaceMetadataTransactionBodyDTO.d.ts +1 -13
- package/esm/api/models/NamespaceMetadataTransactionDTO.d.ts +7 -47
- package/esm/api/models/NamespaceNameDTO.d.ts +3 -15
- package/esm/api/models/NamespaceNetworkPropertiesDTO.d.ts +5 -43
- package/esm/api/models/NamespacePage.d.ts +1 -5
- package/esm/api/models/NamespaceRegistrationTransactionBodyDTO.d.ts +1 -11
- package/esm/api/models/NamespaceRegistrationTransactionDTO.d.ts +7 -45
- package/esm/api/models/NamespaceRegistrationTypeEnum.js +1 -1
- package/esm/api/models/NetworkConfigurationDTO.d.ts +1 -13
- package/esm/api/models/NetworkInflationDTO.d.ts +3 -13
- package/esm/api/models/NetworkPropertiesDTO.d.ts +1 -11
- package/esm/api/models/NetworkTypeDTO.d.ts +1 -5
- package/esm/api/models/NetworkTypeDTO.js +1 -1
- package/esm/api/models/NetworkTypeEnum.js +1 -1
- package/esm/api/models/NodeHealthDTO.d.ts +1 -5
- package/esm/api/models/NodeHealthInfoDTO.d.ts +1 -3
- package/esm/api/models/NodeIdentityEqualityStrategy.js +1 -1
- package/esm/api/models/NodeInfoDTO.d.ts +1 -19
- package/esm/api/models/NodeKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/esm/api/models/NodeKeyLinkTransactionDTO.d.ts +7 -39
- package/esm/api/models/NodeStatusEnum.js +1 -1
- package/esm/api/models/NodeTimeDTO.d.ts +1 -3
- package/esm/api/models/Order.js +1 -1
- package/esm/api/models/Pagination.d.ts +1 -5
- package/esm/api/models/ParentPublicKeySignaturePair.d.ts +1 -5
- package/esm/api/models/PluginsPropertiesDTO.d.ts +1 -23
- package/esm/api/models/PositionEnum.js +1 -1
- package/esm/api/models/ReceiptDTO.d.ts +1 -5
- package/esm/api/models/ReceiptTypeEnum.js +1 -1
- package/esm/api/models/RentalFeesDTO.d.ts +4 -22
- package/esm/api/models/ResolutionEntryDTO.d.ts +1 -5
- package/esm/api/models/ResolutionEntryDTOResolved.d.ts +1 -1
- package/esm/api/models/ResolutionStatementDTO.d.ts +2 -10
- package/esm/api/models/ResolutionStatementDTOUnresolved.d.ts +1 -1
- package/esm/api/models/ResolutionStatementInfoDTO.d.ts +1 -7
- package/esm/api/models/ResolutionStatementPage.d.ts +1 -5
- package/esm/api/models/SecretLockEntryDTO.d.ts +10 -40
- package/esm/api/models/SecretLockInfoDTO.d.ts +1 -5
- package/esm/api/models/SecretLockNetworkPropertiesDTO.d.ts +1 -7
- package/esm/api/models/SecretLockPage.d.ts +1 -5
- package/esm/api/models/SecretLockTransactionBodyDTO.d.ts +1 -13
- package/esm/api/models/SecretLockTransactionDTO.d.ts +7 -47
- package/esm/api/models/SecretProofTransactionBodyDTO.d.ts +1 -9
- package/esm/api/models/SecretProofTransactionDTO.d.ts +7 -43
- package/esm/api/models/ServerDTO.d.ts +1 -5
- package/esm/api/models/ServerInfoDTO.d.ts +1 -3
- package/esm/api/models/SizePrefixedEntityDTO.d.ts +3 -5
- package/esm/api/models/SourceDTO.d.ts +11 -9
- package/esm/api/models/StageEnum.js +1 -1
- package/esm/api/models/StatementMetaDTO.d.ts +2 -14
- package/esm/api/models/StorageInfoDTO.d.ts +1 -9
- package/esm/api/models/StorageInfoDatabaseDTO.d.ts +1 -11
- package/esm/api/models/SupplementalPublicKeysDTO.d.ts +1 -9
- package/esm/api/models/TransactionBodyDTO.d.ts +4 -20
- package/esm/api/models/TransactionDTO.d.ts +7 -35
- package/esm/api/models/TransactionFeesDTO.d.ts +6 -76
- package/esm/api/models/TransactionGroupEnum.js +1 -1
- package/esm/api/models/TransactionHashes.d.ts +1 -3
- package/esm/api/models/TransactionIds.d.ts +1 -3
- package/esm/api/models/TransactionInfoDTO.d.ts +1 -7
- package/esm/api/models/TransactionInfoDTOMeta.d.ts +12 -49
- package/esm/api/models/TransactionInfoDTOTransaction.d.ts +8 -138
- package/esm/api/models/TransactionMetaDTO.d.ts +10 -41
- package/esm/api/models/TransactionPage.d.ts +1 -5
- package/esm/api/models/TransactionPayload.d.ts +1 -3
- package/esm/api/models/TransactionStatementDTO.d.ts +2 -10
- package/esm/api/models/TransactionStatementDTOReceiptsInner.d.ts +7 -39
- package/esm/api/models/TransactionStatementInfoDTO.d.ts +1 -7
- package/esm/api/models/TransactionStatementPage.d.ts +1 -5
- package/esm/api/models/TransactionStatusDTO.d.ts +4 -26
- package/esm/api/models/TransactionStatusEnum.js +1 -1
- package/esm/api/models/TransactionTypeEnum.js +1 -1
- package/esm/api/models/TransferNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/TransferTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/TransferTransactionDTO.d.ts +7 -41
- package/esm/api/models/UnlockedAccountDTO.d.ts +1 -3
- package/esm/api/models/UnresolvedMosaic.d.ts +1 -5
- package/esm/api/models/VerifiableEntityDTO.d.ts +1 -3
- package/esm/api/models/VotingKeyLinkTransactionBodyDTO.d.ts +1 -9
- package/esm/api/models/VotingKeyLinkTransactionDTO.d.ts +7 -43
- package/esm/api/models/VrfKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/esm/api/models/VrfKeyLinkTransactionDTO.d.ts +7 -39
- package/esm/api/runtime.d.ts +34 -1
- package/esm/api/runtime.js +127 -4
- package/index.min.js +1 -1
- package/package.json +23 -7
|
@@ -10,33 +10,114 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type BlockInfoDTO } from '../models/BlockInfoDTO';
|
|
14
|
+
import { type BlockOrderByEnum } from '../models/BlockOrderByEnum';
|
|
15
|
+
import { type BlockPage } from '../models/BlockPage';
|
|
16
|
+
import { type MerkleProofInfoDTO } from '../models/MerkleProofInfoDTO';
|
|
17
|
+
import { type Order } from '../models/Order';
|
|
14
18
|
export interface GetBlockByHeightRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Filter by block height (include). Sequential block position in the chain; starts at 1 and increments by one.
|
|
21
|
+
*/
|
|
15
22
|
height: string;
|
|
16
23
|
}
|
|
17
24
|
export interface GetMerkleReceiptsRequest {
|
|
25
|
+
/**
|
|
26
|
+
* Filter by block height (include). Sequential block position in the chain; starts at 1 and increments by one.
|
|
27
|
+
*/
|
|
18
28
|
height: string;
|
|
29
|
+
/**
|
|
30
|
+
* Receipt statement hash.
|
|
31
|
+
*/
|
|
19
32
|
hash: string;
|
|
20
33
|
}
|
|
21
34
|
export interface GetMerkleTransactionRequest {
|
|
35
|
+
/**
|
|
36
|
+
* Filter by block height (include). Sequential block position in the chain; starts at 1 and increments by one.
|
|
37
|
+
*/
|
|
22
38
|
height: string;
|
|
39
|
+
/**
|
|
40
|
+
* Transaction hash encoded as a 64-character hexadecimal string.
|
|
41
|
+
*/
|
|
23
42
|
hash: string;
|
|
24
43
|
}
|
|
25
44
|
export interface SearchBlocksRequest {
|
|
45
|
+
/**
|
|
46
|
+
* Filter transactions by the public key of the signing account (include).
|
|
47
|
+
*/
|
|
26
48
|
signerPublicKey?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Filter by beneficiary address (include).
|
|
51
|
+
*/
|
|
27
52
|
beneficiaryAddress?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Select the number of entries to return per page.
|
|
55
|
+
* Values outside the allowed range are clamped to the schema minimum or maximum.
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
28
58
|
pageSize?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Page number for numbered pagination (1-based).
|
|
61
|
+
*
|
|
62
|
+
* Numbered and cursor pagination can be combined, but this is not recommended because the semantics
|
|
63
|
+
* are harder to reason about. For cursor-style flows, keep `pageNumber=1` and advance pages by
|
|
64
|
+
* updating only `offset`. For numbered pagination flows, omit `offset` and advance pages by
|
|
65
|
+
* incrementing `pageNumber`.
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
29
68
|
pageNumber?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Cursor for pagination. Provide the value of the sort field (`orderBy`) from the
|
|
71
|
+
* last entry of the previous page. **The offset type must match `orderBy`:**
|
|
72
|
+
* - `orderBy=id`: use the entry's `id` (ObjectId, 24-char hex).
|
|
73
|
+
* - `orderBy=height`: use the block height (string, e.g. `"17592"`).
|
|
74
|
+
* - `orderBy=balance`: use the mosaic balance amount (string, e.g. `"1000000"`).
|
|
75
|
+
*
|
|
76
|
+
* Allowed `orderBy` values depend on the endpoint. If `orderBy` is omitted, `id` is used by default.
|
|
77
|
+
*
|
|
78
|
+
* Set `offset` to the sort-field value of the last entry from the previous page. Across pages,
|
|
79
|
+
* this value decreases with `order=desc` and increases with `order=asc`.
|
|
80
|
+
*
|
|
81
|
+
* Numbered and cursor pagination can be combined, but this is not recommended because the semantics
|
|
82
|
+
* are harder to reason about. For cursor-style flows, keep `pageNumber=1` and advance pages by
|
|
83
|
+
* updating only `offset`. For numbered pagination flows, omit `offset` and advance pages by
|
|
84
|
+
* incrementing `pageNumber`.
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
30
87
|
offset?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Sort responses in ascending or descending order based on the collection property set on the param `orderBy`.
|
|
90
|
+
* If the request does not specify `orderBy`, REST returns the collection ordered by id.
|
|
91
|
+
* The default sort direction depends on the endpoint implementation.
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
31
94
|
order?: Order;
|
|
95
|
+
/**
|
|
96
|
+
* Sort responses by the property set. Defaults to `id` when not specified.
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
32
99
|
orderBy?: BlockOrderByEnum;
|
|
100
|
+
/**
|
|
101
|
+
* Only blocks with timestamp greater or equal than this one are returned. The timestamp is
|
|
102
|
+
* expressed in milliseconds since the nemesis block.
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
33
105
|
fromTimestamp?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Only blocks with timestamp smaller or equal than this one are returned. The timestamp is
|
|
108
|
+
* expressed in milliseconds since the nemesis block.
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
34
111
|
toTimestamp?: string;
|
|
35
112
|
}
|
|
36
113
|
/**
|
|
37
114
|
*
|
|
38
115
|
*/
|
|
39
116
|
export declare class BlockRoutesApi extends runtime.BaseAPI {
|
|
117
|
+
/**
|
|
118
|
+
* Creates request options for getBlockByHeight without sending the request
|
|
119
|
+
*/
|
|
120
|
+
getBlockByHeightRequestOpts(requestParameters: GetBlockByHeightRequest): Promise<runtime.RequestOpts>;
|
|
40
121
|
/**
|
|
41
122
|
* Returns the block at the given height. The response includes the block header, harvester signature, and block metadata (hash, total fee, generation hash, transaction and statement counts). If the block is an importance block, the response additionally contains voting-eligible and harvesting-eligible account counts, total voting balance, and the previous importance block hash.
|
|
42
123
|
* Get block information
|
|
@@ -47,6 +128,10 @@ export declare class BlockRoutesApi extends runtime.BaseAPI {
|
|
|
47
128
|
* Get block information
|
|
48
129
|
*/
|
|
49
130
|
getBlockByHeight(requestParameters: GetBlockByHeightRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BlockInfoDTO>;
|
|
131
|
+
/**
|
|
132
|
+
* Creates request options for getMerkleReceipts without sending the request
|
|
133
|
+
*/
|
|
134
|
+
getMerkleReceiptsRequestOpts(requestParameters: GetMerkleReceiptsRequest): Promise<runtime.RequestOpts>;
|
|
50
135
|
/**
|
|
51
136
|
* Returns the [Merkle path](https://docs.symbol.dev/concepts/data-validation.html#merkle-proof) for a [receipt statement or resolution](https://docs.symbol.dev/concepts/receipt.html) linked to a block. The `hash` parameter is the receipt statement hash, not the transaction hash. The Merkle path is the minimum number of nodes needed to calculate the Merkle root. Steps to calculate the Merkle root: 1. proofHash = hash (leaf). 2. Concatenate proofHash with the first unprocessed item from the merklePath list as follows: - `left`: the item hash is concatenated before the proofHash (proofHash = sha_256(item.hash + proofHash)). - `right`: the item hash is concatenated after the proofHash (proofHash = sha_256(proofHash + item.hash)). 3. Repeat 2. for every item in the merklePath list. 4. Compare if the calculated proofHash equals the one recorded in the [block header](https://docs.symbol.dev/concepts/block.html) (`block.receiptsHash`) to verify if the statement was linked with the block.
|
|
52
137
|
* Get the Merkle path for a given receipt statement hash and block
|
|
@@ -57,6 +142,10 @@ export declare class BlockRoutesApi extends runtime.BaseAPI {
|
|
|
57
142
|
* Get the Merkle path for a given receipt statement hash and block
|
|
58
143
|
*/
|
|
59
144
|
getMerkleReceipts(requestParameters: GetMerkleReceiptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MerkleProofInfoDTO>;
|
|
145
|
+
/**
|
|
146
|
+
* Creates request options for getMerkleTransaction without sending the request
|
|
147
|
+
*/
|
|
148
|
+
getMerkleTransactionRequestOpts(requestParameters: GetMerkleTransactionRequest): Promise<runtime.RequestOpts>;
|
|
60
149
|
/**
|
|
61
150
|
* Returns the [Merkle path](https://docs.symbol.dev/concepts/data-validation.html#merkle-proof) for a [transaction](https://docs.symbol.dev/concepts/transaction.html) included in a block. The Merkle path is the minimum number of nodes needed to calculate the Merkle root. Steps to calculate the Merkle root: 1. proofHash = hash (leaf). 2. Concatenate proofHash with the first unprocessed item from the merklePath list as follows: - `left`: the item hash is concatenated before the proofHash (proofHash = sha_256(item.hash + proofHash)). - `right`: the item hash is concatenated after the proofHash (proofHash = sha_256(proofHash + item.hash)). 3. Repeat 2. for every item in the merklePath list. 4. Compare if the calculated proofHash equals the one recorded in the [block header](https://docs.symbol.dev/concepts/block.html) (`block.transactionsHash`) to verify if the transaction was included in the block.
|
|
62
151
|
* Get the Merkle path for a given transaction and block
|
|
@@ -67,6 +156,10 @@ export declare class BlockRoutesApi extends runtime.BaseAPI {
|
|
|
67
156
|
* Get the Merkle path for a given transaction and block
|
|
68
157
|
*/
|
|
69
158
|
getMerkleTransaction(requestParameters: GetMerkleTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MerkleProofInfoDTO>;
|
|
159
|
+
/**
|
|
160
|
+
* Creates request options for searchBlocks without sending the request
|
|
161
|
+
*/
|
|
162
|
+
searchBlocksRequestOpts(requestParameters: SearchBlocksRequest): Promise<runtime.RequestOpts>;
|
|
70
163
|
/**
|
|
71
164
|
* Returns a paginated list of blocks matching the given criteria. Results can be filtered by harvester (`signerPublicKey`), `beneficiaryAddress`, and timestamp range. Standard pagination parameters (`pageSize`, `pageNumber`, `offset`, `order`) apply. The `orderBy` parameter supports `id` and `height`. The `offset` value must match the `orderBy` field.
|
|
72
165
|
* Search blocks
|
|
@@ -12,29 +12,38 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { BlockInfoDTOFromJSON,
|
|
15
|
+
import { BlockInfoDTOFromJSON, } from '../models/BlockInfoDTO';
|
|
16
|
+
import { BlockPageFromJSON, } from '../models/BlockPage';
|
|
17
|
+
import { MerkleProofInfoDTOFromJSON, } from '../models/MerkleProofInfoDTO';
|
|
16
18
|
/**
|
|
17
19
|
*
|
|
18
20
|
*/
|
|
19
21
|
export class BlockRoutesApi extends runtime.BaseAPI {
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
22
|
-
* Get block information
|
|
23
|
+
* Creates request options for getBlockByHeight without sending the request
|
|
23
24
|
*/
|
|
24
|
-
async
|
|
25
|
+
async getBlockByHeightRequestOpts(requestParameters) {
|
|
25
26
|
if (requestParameters['height'] == null) {
|
|
26
27
|
throw new runtime.RequiredError('height', 'Required parameter "height" was null or undefined when calling getBlockByHeight().');
|
|
27
28
|
}
|
|
28
29
|
const queryParameters = {};
|
|
29
30
|
const headerParameters = {};
|
|
30
31
|
let urlPath = `/blocks/{height}`;
|
|
31
|
-
urlPath = urlPath.replace(
|
|
32
|
-
|
|
32
|
+
urlPath = urlPath.replace('{height}', encodeURIComponent(String(requestParameters['height'])));
|
|
33
|
+
return {
|
|
33
34
|
path: urlPath,
|
|
34
35
|
method: 'GET',
|
|
35
36
|
headers: headerParameters,
|
|
36
37
|
query: queryParameters,
|
|
37
|
-
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns the block at the given height. The response includes the block header, harvester signature, and block metadata (hash, total fee, generation hash, transaction and statement counts). If the block is an importance block, the response additionally contains voting-eligible and harvesting-eligible account counts, total voting balance, and the previous importance block hash.
|
|
42
|
+
* Get block information
|
|
43
|
+
*/
|
|
44
|
+
async getBlockByHeightRaw(requestParameters, initOverrides) {
|
|
45
|
+
const requestOptions = await this.getBlockByHeightRequestOpts(requestParameters);
|
|
46
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
38
47
|
return new runtime.JSONApiResponse(response, (jsonValue) => BlockInfoDTOFromJSON(jsonValue));
|
|
39
48
|
}
|
|
40
49
|
/**
|
|
@@ -46,10 +55,9 @@ export class BlockRoutesApi extends runtime.BaseAPI {
|
|
|
46
55
|
return await response.value();
|
|
47
56
|
}
|
|
48
57
|
/**
|
|
49
|
-
*
|
|
50
|
-
* Get the Merkle path for a given receipt statement hash and block
|
|
58
|
+
* Creates request options for getMerkleReceipts without sending the request
|
|
51
59
|
*/
|
|
52
|
-
async
|
|
60
|
+
async getMerkleReceiptsRequestOpts(requestParameters) {
|
|
53
61
|
if (requestParameters['height'] == null) {
|
|
54
62
|
throw new runtime.RequiredError('height', 'Required parameter "height" was null or undefined when calling getMerkleReceipts().');
|
|
55
63
|
}
|
|
@@ -59,14 +67,22 @@ export class BlockRoutesApi extends runtime.BaseAPI {
|
|
|
59
67
|
const queryParameters = {};
|
|
60
68
|
const headerParameters = {};
|
|
61
69
|
let urlPath = `/blocks/{height}/statements/{hash}/merkle`;
|
|
62
|
-
urlPath = urlPath.replace(
|
|
63
|
-
urlPath = urlPath.replace(
|
|
64
|
-
|
|
70
|
+
urlPath = urlPath.replace('{height}', encodeURIComponent(String(requestParameters['height'])));
|
|
71
|
+
urlPath = urlPath.replace('{hash}', encodeURIComponent(String(requestParameters['hash'])));
|
|
72
|
+
return {
|
|
65
73
|
path: urlPath,
|
|
66
74
|
method: 'GET',
|
|
67
75
|
headers: headerParameters,
|
|
68
76
|
query: queryParameters,
|
|
69
|
-
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Returns the [Merkle path](https://docs.symbol.dev/concepts/data-validation.html#merkle-proof) for a [receipt statement or resolution](https://docs.symbol.dev/concepts/receipt.html) linked to a block. The `hash` parameter is the receipt statement hash, not the transaction hash. The Merkle path is the minimum number of nodes needed to calculate the Merkle root. Steps to calculate the Merkle root: 1. proofHash = hash (leaf). 2. Concatenate proofHash with the first unprocessed item from the merklePath list as follows: - `left`: the item hash is concatenated before the proofHash (proofHash = sha_256(item.hash + proofHash)). - `right`: the item hash is concatenated after the proofHash (proofHash = sha_256(proofHash + item.hash)). 3. Repeat 2. for every item in the merklePath list. 4. Compare if the calculated proofHash equals the one recorded in the [block header](https://docs.symbol.dev/concepts/block.html) (`block.receiptsHash`) to verify if the statement was linked with the block.
|
|
81
|
+
* Get the Merkle path for a given receipt statement hash and block
|
|
82
|
+
*/
|
|
83
|
+
async getMerkleReceiptsRaw(requestParameters, initOverrides) {
|
|
84
|
+
const requestOptions = await this.getMerkleReceiptsRequestOpts(requestParameters);
|
|
85
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
70
86
|
return new runtime.JSONApiResponse(response, (jsonValue) => MerkleProofInfoDTOFromJSON(jsonValue));
|
|
71
87
|
}
|
|
72
88
|
/**
|
|
@@ -78,10 +94,9 @@ export class BlockRoutesApi extends runtime.BaseAPI {
|
|
|
78
94
|
return await response.value();
|
|
79
95
|
}
|
|
80
96
|
/**
|
|
81
|
-
*
|
|
82
|
-
* Get the Merkle path for a given transaction and block
|
|
97
|
+
* Creates request options for getMerkleTransaction without sending the request
|
|
83
98
|
*/
|
|
84
|
-
async
|
|
99
|
+
async getMerkleTransactionRequestOpts(requestParameters) {
|
|
85
100
|
if (requestParameters['height'] == null) {
|
|
86
101
|
throw new runtime.RequiredError('height', 'Required parameter "height" was null or undefined when calling getMerkleTransaction().');
|
|
87
102
|
}
|
|
@@ -91,14 +106,22 @@ export class BlockRoutesApi extends runtime.BaseAPI {
|
|
|
91
106
|
const queryParameters = {};
|
|
92
107
|
const headerParameters = {};
|
|
93
108
|
let urlPath = `/blocks/{height}/transactions/{hash}/merkle`;
|
|
94
|
-
urlPath = urlPath.replace(
|
|
95
|
-
urlPath = urlPath.replace(
|
|
96
|
-
|
|
109
|
+
urlPath = urlPath.replace('{height}', encodeURIComponent(String(requestParameters['height'])));
|
|
110
|
+
urlPath = urlPath.replace('{hash}', encodeURIComponent(String(requestParameters['hash'])));
|
|
111
|
+
return {
|
|
97
112
|
path: urlPath,
|
|
98
113
|
method: 'GET',
|
|
99
114
|
headers: headerParameters,
|
|
100
115
|
query: queryParameters,
|
|
101
|
-
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Returns the [Merkle path](https://docs.symbol.dev/concepts/data-validation.html#merkle-proof) for a [transaction](https://docs.symbol.dev/concepts/transaction.html) included in a block. The Merkle path is the minimum number of nodes needed to calculate the Merkle root. Steps to calculate the Merkle root: 1. proofHash = hash (leaf). 2. Concatenate proofHash with the first unprocessed item from the merklePath list as follows: - `left`: the item hash is concatenated before the proofHash (proofHash = sha_256(item.hash + proofHash)). - `right`: the item hash is concatenated after the proofHash (proofHash = sha_256(proofHash + item.hash)). 3. Repeat 2. for every item in the merklePath list. 4. Compare if the calculated proofHash equals the one recorded in the [block header](https://docs.symbol.dev/concepts/block.html) (`block.transactionsHash`) to verify if the transaction was included in the block.
|
|
120
|
+
* Get the Merkle path for a given transaction and block
|
|
121
|
+
*/
|
|
122
|
+
async getMerkleTransactionRaw(requestParameters, initOverrides) {
|
|
123
|
+
const requestOptions = await this.getMerkleTransactionRequestOpts(requestParameters);
|
|
124
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
102
125
|
return new runtime.JSONApiResponse(response, (jsonValue) => MerkleProofInfoDTOFromJSON(jsonValue));
|
|
103
126
|
}
|
|
104
127
|
/**
|
|
@@ -110,10 +133,9 @@ export class BlockRoutesApi extends runtime.BaseAPI {
|
|
|
110
133
|
return await response.value();
|
|
111
134
|
}
|
|
112
135
|
/**
|
|
113
|
-
*
|
|
114
|
-
* Search blocks
|
|
136
|
+
* Creates request options for searchBlocks without sending the request
|
|
115
137
|
*/
|
|
116
|
-
async
|
|
138
|
+
async searchBlocksRequestOpts(requestParameters) {
|
|
117
139
|
const queryParameters = {};
|
|
118
140
|
if (requestParameters['signerPublicKey'] != null) {
|
|
119
141
|
queryParameters['signerPublicKey'] = requestParameters['signerPublicKey'];
|
|
@@ -144,12 +166,20 @@ export class BlockRoutesApi extends runtime.BaseAPI {
|
|
|
144
166
|
}
|
|
145
167
|
const headerParameters = {};
|
|
146
168
|
let urlPath = `/blocks`;
|
|
147
|
-
|
|
169
|
+
return {
|
|
148
170
|
path: urlPath,
|
|
149
171
|
method: 'GET',
|
|
150
172
|
headers: headerParameters,
|
|
151
173
|
query: queryParameters,
|
|
152
|
-
}
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Returns a paginated list of blocks matching the given criteria. Results can be filtered by harvester (`signerPublicKey`), `beneficiaryAddress`, and timestamp range. Standard pagination parameters (`pageSize`, `pageNumber`, `offset`, `order`) apply. The `orderBy` parameter supports `id` and `height`. The `offset` value must match the `orderBy` field.
|
|
178
|
+
* Search blocks
|
|
179
|
+
*/
|
|
180
|
+
async searchBlocksRaw(requestParameters, initOverrides) {
|
|
181
|
+
const requestOptions = await this.searchBlocksRequestOpts(requestParameters);
|
|
182
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
153
183
|
return new runtime.JSONApiResponse(response, (jsonValue) => BlockPageFromJSON(jsonValue));
|
|
154
184
|
}
|
|
155
185
|
/**
|
|
@@ -10,11 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type ChainInfoDTO } from '../models/ChainInfoDTO';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
export declare class ChainRoutesApi extends runtime.BaseAPI {
|
|
18
|
+
/**
|
|
19
|
+
* Creates request options for getChainInfo without sending the request
|
|
20
|
+
*/
|
|
21
|
+
getChainInfoRequestOpts(): Promise<runtime.RequestOpts>;
|
|
18
22
|
/**
|
|
19
23
|
* Returns the current state of the blockchain: chain height, chain score, and the latest finalized block.
|
|
20
24
|
* Get chain information
|
|
@@ -12,25 +12,32 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ChainInfoDTOFromJSON, } from '../models/
|
|
15
|
+
import { ChainInfoDTOFromJSON, } from '../models/ChainInfoDTO';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class ChainRoutesApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
* Get chain information
|
|
21
|
+
* Creates request options for getChainInfo without sending the request
|
|
23
22
|
*/
|
|
24
|
-
async
|
|
23
|
+
async getChainInfoRequestOpts() {
|
|
25
24
|
const queryParameters = {};
|
|
26
25
|
const headerParameters = {};
|
|
27
26
|
let urlPath = `/chain/info`;
|
|
28
|
-
|
|
27
|
+
return {
|
|
29
28
|
path: urlPath,
|
|
30
29
|
method: 'GET',
|
|
31
30
|
headers: headerParameters,
|
|
32
31
|
query: queryParameters,
|
|
33
|
-
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Returns the current state of the blockchain: chain height, chain score, and the latest finalized block.
|
|
36
|
+
* Get chain information
|
|
37
|
+
*/
|
|
38
|
+
async getChainInfoRaw(initOverrides) {
|
|
39
|
+
const requestOptions = await this.getChainInfoRequestOpts();
|
|
40
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
34
41
|
return new runtime.JSONApiResponse(response, (jsonValue) => ChainInfoDTOFromJSON(jsonValue));
|
|
35
42
|
}
|
|
36
43
|
/**
|
|
@@ -10,17 +10,29 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type FinalizationProofDTO } from '../models/FinalizationProofDTO';
|
|
14
14
|
export interface GetFinalizationProofAtEpochRequest {
|
|
15
|
+
/**
|
|
16
|
+
* The finalization epoch is a sequential integer. Each epoch groups a set of blocks
|
|
17
|
+
* for finalization voting (interval defined by network config, e.g. 1440 blocks for mainnet).
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
15
20
|
epoch: number;
|
|
16
21
|
}
|
|
17
22
|
export interface GetFinalizationProofAtHeightRequest {
|
|
23
|
+
/**
|
|
24
|
+
* Filter by block height (include). Sequential block position in the chain; starts at 1 and increments by one.
|
|
25
|
+
*/
|
|
18
26
|
height: string;
|
|
19
27
|
}
|
|
20
28
|
/**
|
|
21
29
|
*
|
|
22
30
|
*/
|
|
23
31
|
export declare class FinalizationRoutesApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for getFinalizationProofAtEpoch without sending the request
|
|
34
|
+
*/
|
|
35
|
+
getFinalizationProofAtEpochRequestOpts(requestParameters: GetFinalizationProofAtEpochRequest): Promise<runtime.RequestOpts>;
|
|
24
36
|
/**
|
|
25
37
|
* Returns the finalization proof for the greatest block height associated with the given finalization epoch.
|
|
26
38
|
* Get finalization proof at epoch
|
|
@@ -31,6 +43,10 @@ export declare class FinalizationRoutesApi extends runtime.BaseAPI {
|
|
|
31
43
|
* Get finalization proof at epoch
|
|
32
44
|
*/
|
|
33
45
|
getFinalizationProofAtEpoch(requestParameters: GetFinalizationProofAtEpochRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalizationProofDTO>;
|
|
46
|
+
/**
|
|
47
|
+
* Creates request options for getFinalizationProofAtHeight without sending the request
|
|
48
|
+
*/
|
|
49
|
+
getFinalizationProofAtHeightRequestOpts(requestParameters: GetFinalizationProofAtHeightRequest): Promise<runtime.RequestOpts>;
|
|
34
50
|
/**
|
|
35
51
|
* Returns the finalization proof for the block at the given height.
|
|
36
52
|
* Get finalization proof at height
|
|
@@ -12,29 +12,36 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { FinalizationProofDTOFromJSON, } from '../models/
|
|
15
|
+
import { FinalizationProofDTOFromJSON, } from '../models/FinalizationProofDTO';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class FinalizationRoutesApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
* Get finalization proof at epoch
|
|
21
|
+
* Creates request options for getFinalizationProofAtEpoch without sending the request
|
|
23
22
|
*/
|
|
24
|
-
async
|
|
23
|
+
async getFinalizationProofAtEpochRequestOpts(requestParameters) {
|
|
25
24
|
if (requestParameters['epoch'] == null) {
|
|
26
25
|
throw new runtime.RequiredError('epoch', 'Required parameter "epoch" was null or undefined when calling getFinalizationProofAtEpoch().');
|
|
27
26
|
}
|
|
28
27
|
const queryParameters = {};
|
|
29
28
|
const headerParameters = {};
|
|
30
29
|
let urlPath = `/finalization/proof/epoch/{epoch}`;
|
|
31
|
-
urlPath = urlPath.replace(
|
|
32
|
-
|
|
30
|
+
urlPath = urlPath.replace('{epoch}', encodeURIComponent(String(requestParameters['epoch'])));
|
|
31
|
+
return {
|
|
33
32
|
path: urlPath,
|
|
34
33
|
method: 'GET',
|
|
35
34
|
headers: headerParameters,
|
|
36
35
|
query: queryParameters,
|
|
37
|
-
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Returns the finalization proof for the greatest block height associated with the given finalization epoch.
|
|
40
|
+
* Get finalization proof at epoch
|
|
41
|
+
*/
|
|
42
|
+
async getFinalizationProofAtEpochRaw(requestParameters, initOverrides) {
|
|
43
|
+
const requestOptions = await this.getFinalizationProofAtEpochRequestOpts(requestParameters);
|
|
44
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
38
45
|
return new runtime.JSONApiResponse(response, (jsonValue) => FinalizationProofDTOFromJSON(jsonValue));
|
|
39
46
|
}
|
|
40
47
|
/**
|
|
@@ -46,23 +53,30 @@ export class FinalizationRoutesApi extends runtime.BaseAPI {
|
|
|
46
53
|
return await response.value();
|
|
47
54
|
}
|
|
48
55
|
/**
|
|
49
|
-
*
|
|
50
|
-
* Get finalization proof at height
|
|
56
|
+
* Creates request options for getFinalizationProofAtHeight without sending the request
|
|
51
57
|
*/
|
|
52
|
-
async
|
|
58
|
+
async getFinalizationProofAtHeightRequestOpts(requestParameters) {
|
|
53
59
|
if (requestParameters['height'] == null) {
|
|
54
60
|
throw new runtime.RequiredError('height', 'Required parameter "height" was null or undefined when calling getFinalizationProofAtHeight().');
|
|
55
61
|
}
|
|
56
62
|
const queryParameters = {};
|
|
57
63
|
const headerParameters = {};
|
|
58
64
|
let urlPath = `/finalization/proof/height/{height}`;
|
|
59
|
-
urlPath = urlPath.replace(
|
|
60
|
-
|
|
65
|
+
urlPath = urlPath.replace('{height}', encodeURIComponent(String(requestParameters['height'])));
|
|
66
|
+
return {
|
|
61
67
|
path: urlPath,
|
|
62
68
|
method: 'GET',
|
|
63
69
|
headers: headerParameters,
|
|
64
70
|
query: queryParameters,
|
|
65
|
-
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Returns the finalization proof for the block at the given height.
|
|
75
|
+
* Get finalization proof at height
|
|
76
|
+
*/
|
|
77
|
+
async getFinalizationProofAtHeightRaw(requestParameters, initOverrides) {
|
|
78
|
+
const requestOptions = await this.getFinalizationProofAtHeightRequestOpts(requestParameters);
|
|
79
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
66
80
|
return new runtime.JSONApiResponse(response, (jsonValue) => FinalizationProofDTOFromJSON(jsonValue));
|
|
67
81
|
}
|
|
68
82
|
/**
|