@nemtus/symbol-rest-api-client-fetch 1.0.0 → 1.0.2
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 +26 -10
|
@@ -12,16 +12,20 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { AnnounceTransactionInfoDTOFromJSON,
|
|
15
|
+
import { AnnounceTransactionInfoDTOFromJSON, } from '../models/AnnounceTransactionInfoDTO';
|
|
16
|
+
import { CosignatureToJSON, } from '../models/Cosignature';
|
|
17
|
+
import { TransactionIdsToJSON, } from '../models/TransactionIds';
|
|
18
|
+
import { TransactionInfoDTOFromJSON, } from '../models/TransactionInfoDTO';
|
|
19
|
+
import { TransactionPageFromJSON, } from '../models/TransactionPage';
|
|
20
|
+
import { TransactionPayloadToJSON, } from '../models/TransactionPayload';
|
|
16
21
|
/**
|
|
17
22
|
*
|
|
18
23
|
*/
|
|
19
24
|
export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
20
25
|
/**
|
|
21
|
-
*
|
|
22
|
-
* Announce a cosignature transaction
|
|
26
|
+
* Creates request options for announceCosignatureTransaction without sending the request
|
|
23
27
|
*/
|
|
24
|
-
async
|
|
28
|
+
async announceCosignatureTransactionRequestOpts(requestParameters) {
|
|
25
29
|
if (requestParameters['cosignature'] == null) {
|
|
26
30
|
throw new runtime.RequiredError('cosignature', 'Required parameter "cosignature" was null or undefined when calling announceCosignatureTransaction().');
|
|
27
31
|
}
|
|
@@ -29,13 +33,21 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
29
33
|
const headerParameters = {};
|
|
30
34
|
headerParameters['Content-Type'] = 'application/json';
|
|
31
35
|
let urlPath = `/transactions/cosignature`;
|
|
32
|
-
|
|
36
|
+
return {
|
|
33
37
|
path: urlPath,
|
|
34
38
|
method: 'PUT',
|
|
35
39
|
headers: headerParameters,
|
|
36
40
|
query: queryParameters,
|
|
37
41
|
body: CosignatureToJSON(requestParameters['cosignature']),
|
|
38
|
-
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Broadcasts a detached cosignature for an aggregate bonded transaction to the network through this node. The request must contain the detached cosignature fields: cosignature version, signer public key, cosignature signature, and the parent aggregate transaction hash. Detached cosignatures are normally created client-side with a [Symbol SDK](https://docs.symbol.dev/sdk.html) and then announced with this endpoint. Acceptance by this node does not mean the parent aggregate bonded transaction is already confirmed on-chain. The cosignature still needs to be propagated and processed by the network. To verify the effect of the cosignature, query the **parent aggregate bonded transaction**, for example with [`GET /transactionStatus/{hash}`](/transactionStatus/{hash}) using the parent aggregate transaction hash. Transaction status availability is not guaranteed indefinitely: failed statuses are stored in a capped collection and may be evicted as new entries arrive.
|
|
46
|
+
* Announce a cosignature transaction
|
|
47
|
+
*/
|
|
48
|
+
async announceCosignatureTransactionRaw(requestParameters, initOverrides) {
|
|
49
|
+
const requestOptions = await this.announceCosignatureTransactionRequestOpts(requestParameters);
|
|
50
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
39
51
|
return new runtime.JSONApiResponse(response, (jsonValue) => AnnounceTransactionInfoDTOFromJSON(jsonValue));
|
|
40
52
|
}
|
|
41
53
|
/**
|
|
@@ -47,10 +59,9 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
47
59
|
return await response.value();
|
|
48
60
|
}
|
|
49
61
|
/**
|
|
50
|
-
*
|
|
51
|
-
* Announce an aggregate bonded transaction
|
|
62
|
+
* Creates request options for announcePartialTransaction without sending the request
|
|
52
63
|
*/
|
|
53
|
-
async
|
|
64
|
+
async announcePartialTransactionRequestOpts(requestParameters) {
|
|
54
65
|
if (requestParameters['transactionPayload'] == null) {
|
|
55
66
|
throw new runtime.RequiredError('transactionPayload', 'Required parameter "transactionPayload" was null or undefined when calling announcePartialTransaction().');
|
|
56
67
|
}
|
|
@@ -58,13 +69,21 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
58
69
|
const headerParameters = {};
|
|
59
70
|
headerParameters['Content-Type'] = 'application/json';
|
|
60
71
|
let urlPath = `/transactions/partial`;
|
|
61
|
-
|
|
72
|
+
return {
|
|
62
73
|
path: urlPath,
|
|
63
74
|
method: 'PUT',
|
|
64
75
|
headers: headerParameters,
|
|
65
76
|
query: queryParameters,
|
|
66
77
|
body: TransactionPayloadToJSON(requestParameters['transactionPayload']),
|
|
67
|
-
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Broadcasts a signed aggregate bonded transaction to the network through this node. The request must contain the serialized aggregate bonded transaction payload in hexadecimal form. Transactions are normally created and signed client-side with a [Symbol SDK](https://docs.symbol.dev/sdk.html) and then announced with this endpoint. Acceptance by this node does not mean the transaction is already part of the blockchain. The transaction still needs to be validated and confirmed by the network. To verify the final result, query `GET /transactionStatus/{hash}` on the same node that received the announce request. If that node drops the transaction before propagation, other nodes may not know the transaction at all and can return `404` for the same hash. Transaction status availability is not guaranteed indefinitely: failed statuses are stored in a capped collection and may be evicted as new entries arrive.
|
|
82
|
+
* Announce an aggregate bonded transaction
|
|
83
|
+
*/
|
|
84
|
+
async announcePartialTransactionRaw(requestParameters, initOverrides) {
|
|
85
|
+
const requestOptions = await this.announcePartialTransactionRequestOpts(requestParameters);
|
|
86
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
68
87
|
return new runtime.JSONApiResponse(response, (jsonValue) => AnnounceTransactionInfoDTOFromJSON(jsonValue));
|
|
69
88
|
}
|
|
70
89
|
/**
|
|
@@ -76,10 +95,9 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
76
95
|
return await response.value();
|
|
77
96
|
}
|
|
78
97
|
/**
|
|
79
|
-
*
|
|
80
|
-
* Announce a new transaction
|
|
98
|
+
* Creates request options for announceTransaction without sending the request
|
|
81
99
|
*/
|
|
82
|
-
async
|
|
100
|
+
async announceTransactionRequestOpts(requestParameters) {
|
|
83
101
|
if (requestParameters['transactionPayload'] == null) {
|
|
84
102
|
throw new runtime.RequiredError('transactionPayload', 'Required parameter "transactionPayload" was null or undefined when calling announceTransaction().');
|
|
85
103
|
}
|
|
@@ -87,13 +105,21 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
87
105
|
const headerParameters = {};
|
|
88
106
|
headerParameters['Content-Type'] = 'application/json';
|
|
89
107
|
let urlPath = `/transactions`;
|
|
90
|
-
|
|
108
|
+
return {
|
|
91
109
|
path: urlPath,
|
|
92
110
|
method: 'PUT',
|
|
93
111
|
headers: headerParameters,
|
|
94
112
|
query: queryParameters,
|
|
95
113
|
body: TransactionPayloadToJSON(requestParameters['transactionPayload']),
|
|
96
|
-
}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Broadcasts a signed transaction to the network through this node. The request must contain the serialized transaction payload in hexadecimal form. Transactions are normally created and signed client-side with a [Symbol SDK](https://docs.symbol.dev/sdk.html) and then announced with this endpoint. The [catbuffer library](https://github.com/symbol/symbol/tree/main/catbuffer) defines the binary serialization format used by Symbol entities. Acceptance by this node does not mean the transaction is already part of the blockchain. The transaction still needs to be validated and confirmed by the network. To verify the final result, query `GET /transactionStatus/{hash}` on the same node that received the announce request. If that node drops the transaction before propagation, other nodes may not know the transaction at all and can return `404` for the same hash. Transaction status availability is not guaranteed indefinitely: failed statuses are stored in a capped collection and may be evicted as new entries arrive.
|
|
118
|
+
* Announce a new transaction
|
|
119
|
+
*/
|
|
120
|
+
async announceTransactionRaw(requestParameters, initOverrides) {
|
|
121
|
+
const requestOptions = await this.announceTransactionRequestOpts(requestParameters);
|
|
122
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
97
123
|
return new runtime.JSONApiResponse(response, (jsonValue) => AnnounceTransactionInfoDTOFromJSON(jsonValue));
|
|
98
124
|
}
|
|
99
125
|
/**
|
|
@@ -105,23 +131,30 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
105
131
|
return await response.value();
|
|
106
132
|
}
|
|
107
133
|
/**
|
|
108
|
-
*
|
|
109
|
-
* Get confirmed transaction information
|
|
134
|
+
* Creates request options for getConfirmedTransaction without sending the request
|
|
110
135
|
*/
|
|
111
|
-
async
|
|
136
|
+
async getConfirmedTransactionRequestOpts(requestParameters) {
|
|
112
137
|
if (requestParameters['transactionId'] == null) {
|
|
113
138
|
throw new runtime.RequiredError('transactionId', 'Required parameter "transactionId" was null or undefined when calling getConfirmedTransaction().');
|
|
114
139
|
}
|
|
115
140
|
const queryParameters = {};
|
|
116
141
|
const headerParameters = {};
|
|
117
142
|
let urlPath = `/transactions/confirmed/{transactionId}`;
|
|
118
|
-
urlPath = urlPath.replace(
|
|
119
|
-
|
|
143
|
+
urlPath = urlPath.replace('{transactionId}', encodeURIComponent(String(requestParameters['transactionId'])));
|
|
144
|
+
return {
|
|
120
145
|
path: urlPath,
|
|
121
146
|
method: 'GET',
|
|
122
147
|
headers: headerParameters,
|
|
123
148
|
query: queryParameters,
|
|
124
|
-
}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Returns confirmed transaction information given a transaction ID assigned by the node or transaction hash. Use this endpoint when you need on-chain transaction data (the transaction is already included in a block). Use `getUnconfirmedTransaction` while the transaction is still in a node\'s unconfirmed pool, and use `getPartialTransaction` for aggregate bonded transactions waiting for cosignatures.
|
|
153
|
+
* Get confirmed transaction information
|
|
154
|
+
*/
|
|
155
|
+
async getConfirmedTransactionRaw(requestParameters, initOverrides) {
|
|
156
|
+
const requestOptions = await this.getConfirmedTransactionRequestOpts(requestParameters);
|
|
157
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
125
158
|
return new runtime.JSONApiResponse(response, (jsonValue) => TransactionInfoDTOFromJSON(jsonValue));
|
|
126
159
|
}
|
|
127
160
|
/**
|
|
@@ -133,10 +166,9 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
133
166
|
return await response.value();
|
|
134
167
|
}
|
|
135
168
|
/**
|
|
136
|
-
*
|
|
137
|
-
* Get confirmed transactions information
|
|
169
|
+
* Creates request options for getConfirmedTransactions without sending the request
|
|
138
170
|
*/
|
|
139
|
-
async
|
|
171
|
+
async getConfirmedTransactionsRequestOpts(requestParameters) {
|
|
140
172
|
if (requestParameters['transactionIds'] == null) {
|
|
141
173
|
throw new runtime.RequiredError('transactionIds', 'Required parameter "transactionIds" was null or undefined when calling getConfirmedTransactions().');
|
|
142
174
|
}
|
|
@@ -144,13 +176,21 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
144
176
|
const headerParameters = {};
|
|
145
177
|
headerParameters['Content-Type'] = 'application/json';
|
|
146
178
|
let urlPath = `/transactions/confirmed`;
|
|
147
|
-
|
|
179
|
+
return {
|
|
148
180
|
path: urlPath,
|
|
149
181
|
method: 'POST',
|
|
150
182
|
headers: headerParameters,
|
|
151
183
|
query: queryParameters,
|
|
152
184
|
body: TransactionIdsToJSON(requestParameters['transactionIds']),
|
|
153
|
-
}
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Returns confirmed transactions for the list of identifiers in the request body. Each request item can be either a transaction ID assigned by the node or a transaction hash. Both values are returned by transaction retrieval and search endpoints, for example `GET /transactions/confirmed` and `GET /transactions/confirmed/{transactionId}`. Use this endpoint when you need on-chain data for multiple transactions in one call. Use `getUnconfirmedTransactions` for transactions still pending in a node pool, and use `getPartialTransactions` for aggregate bonded transactions waiting for cosignatures.
|
|
189
|
+
* Get confirmed transactions information
|
|
190
|
+
*/
|
|
191
|
+
async getConfirmedTransactionsRaw(requestParameters, initOverrides) {
|
|
192
|
+
const requestOptions = await this.getConfirmedTransactionsRequestOpts(requestParameters);
|
|
193
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
154
194
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TransactionInfoDTOFromJSON));
|
|
155
195
|
}
|
|
156
196
|
/**
|
|
@@ -162,23 +202,30 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
162
202
|
return await response.value();
|
|
163
203
|
}
|
|
164
204
|
/**
|
|
165
|
-
*
|
|
166
|
-
* Get partial transaction information
|
|
205
|
+
* Creates request options for getPartialTransaction without sending the request
|
|
167
206
|
*/
|
|
168
|
-
async
|
|
207
|
+
async getPartialTransactionRequestOpts(requestParameters) {
|
|
169
208
|
if (requestParameters['transactionId'] == null) {
|
|
170
209
|
throw new runtime.RequiredError('transactionId', 'Required parameter "transactionId" was null or undefined when calling getPartialTransaction().');
|
|
171
210
|
}
|
|
172
211
|
const queryParameters = {};
|
|
173
212
|
const headerParameters = {};
|
|
174
213
|
let urlPath = `/transactions/partial/{transactionId}`;
|
|
175
|
-
urlPath = urlPath.replace(
|
|
176
|
-
|
|
214
|
+
urlPath = urlPath.replace('{transactionId}', encodeURIComponent(String(requestParameters['transactionId'])));
|
|
215
|
+
return {
|
|
177
216
|
path: urlPath,
|
|
178
217
|
method: 'GET',
|
|
179
218
|
headers: headerParameters,
|
|
180
219
|
query: queryParameters,
|
|
181
|
-
}
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Returns one partial transaction identified by the path value. Partial transactions are aggregate bonded transactions waiting for the remaining cosignatures. The path accepts either the transaction ID assigned by the node or the transaction hash. Both values are returned by transaction retrieval and search endpoints, for example `GET /transactions/partial` and `GET /transactions/partial/{transactionId}`. Use this endpoint for aggregate bonded transactions before they are fully cosigned. Use `getUnconfirmedTransaction` for non-partial transactions that are in a node\'s unconfirmed pool, and use `getConfirmedTransaction` once the transaction is confirmed on-chain.
|
|
224
|
+
* Get partial transaction information
|
|
225
|
+
*/
|
|
226
|
+
async getPartialTransactionRaw(requestParameters, initOverrides) {
|
|
227
|
+
const requestOptions = await this.getPartialTransactionRequestOpts(requestParameters);
|
|
228
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
182
229
|
return new runtime.JSONApiResponse(response, (jsonValue) => TransactionInfoDTOFromJSON(jsonValue));
|
|
183
230
|
}
|
|
184
231
|
/**
|
|
@@ -190,10 +237,9 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
190
237
|
return await response.value();
|
|
191
238
|
}
|
|
192
239
|
/**
|
|
193
|
-
*
|
|
194
|
-
* Get information about partial transactions
|
|
240
|
+
* Creates request options for getPartialTransactions without sending the request
|
|
195
241
|
*/
|
|
196
|
-
async
|
|
242
|
+
async getPartialTransactionsRequestOpts(requestParameters) {
|
|
197
243
|
if (requestParameters['transactionIds'] == null) {
|
|
198
244
|
throw new runtime.RequiredError('transactionIds', 'Required parameter "transactionIds" was null or undefined when calling getPartialTransactions().');
|
|
199
245
|
}
|
|
@@ -201,13 +247,21 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
201
247
|
const headerParameters = {};
|
|
202
248
|
headerParameters['Content-Type'] = 'application/json';
|
|
203
249
|
let urlPath = `/transactions/partial`;
|
|
204
|
-
|
|
250
|
+
return {
|
|
205
251
|
path: urlPath,
|
|
206
252
|
method: 'POST',
|
|
207
253
|
headers: headerParameters,
|
|
208
254
|
query: queryParameters,
|
|
209
255
|
body: TransactionIdsToJSON(requestParameters['transactionIds']),
|
|
210
|
-
}
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Returns partial transactions for the list of identifiers in the request body. Partial transactions are aggregate bonded transactions waiting for the remaining cosignatures. Each request item can be either a transaction ID assigned by the node or a transaction hash. Both values are returned by transaction retrieval and search endpoints, for example `GET /transactions/partial` and `GET /transactions/partial/{transactionId}`. Use this endpoint for aggregate bonded transactions that still wait for required cosignatures. Use `getUnconfirmedTransactions` for non-partial pending transactions accepted by a node but not yet included in a block, and use `getConfirmedTransactions` once transactions are confirmed on-chain.
|
|
260
|
+
* Get information about partial transactions
|
|
261
|
+
*/
|
|
262
|
+
async getPartialTransactionsRaw(requestParameters, initOverrides) {
|
|
263
|
+
const requestOptions = await this.getPartialTransactionsRequestOpts(requestParameters);
|
|
264
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
211
265
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TransactionInfoDTOFromJSON));
|
|
212
266
|
}
|
|
213
267
|
/**
|
|
@@ -219,23 +273,30 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
219
273
|
return await response.value();
|
|
220
274
|
}
|
|
221
275
|
/**
|
|
222
|
-
*
|
|
223
|
-
* Get unconfirmed transaction information
|
|
276
|
+
* Creates request options for getUnconfirmedTransaction without sending the request
|
|
224
277
|
*/
|
|
225
|
-
async
|
|
278
|
+
async getUnconfirmedTransactionRequestOpts(requestParameters) {
|
|
226
279
|
if (requestParameters['transactionId'] == null) {
|
|
227
280
|
throw new runtime.RequiredError('transactionId', 'Required parameter "transactionId" was null or undefined when calling getUnconfirmedTransaction().');
|
|
228
281
|
}
|
|
229
282
|
const queryParameters = {};
|
|
230
283
|
const headerParameters = {};
|
|
231
284
|
let urlPath = `/transactions/unconfirmed/{transactionId}`;
|
|
232
|
-
urlPath = urlPath.replace(
|
|
233
|
-
|
|
285
|
+
urlPath = urlPath.replace('{transactionId}', encodeURIComponent(String(requestParameters['transactionId'])));
|
|
286
|
+
return {
|
|
234
287
|
path: urlPath,
|
|
235
288
|
method: 'GET',
|
|
236
289
|
headers: headerParameters,
|
|
237
290
|
query: queryParameters,
|
|
238
|
-
}
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Returns one unconfirmed transaction identified by the path value. An unconfirmed transaction is accepted by a node and pending inclusion in a block. The path accepts either the transaction ID assigned by the node or the transaction hash. Both values are returned by transaction retrieval and search endpoints, for example `GET /transactions/unconfirmed` and `GET /transactions/unconfirmed/{transactionId}`. Use this endpoint while a transaction is accepted by a node but not yet included in a block. Use `getConfirmedTransaction` once it is confirmed on-chain, and use `getPartialTransaction` for aggregate bonded transactions waiting for cosignatures.
|
|
295
|
+
* Get unconfirmed transaction information
|
|
296
|
+
*/
|
|
297
|
+
async getUnconfirmedTransactionRaw(requestParameters, initOverrides) {
|
|
298
|
+
const requestOptions = await this.getUnconfirmedTransactionRequestOpts(requestParameters);
|
|
299
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
239
300
|
return new runtime.JSONApiResponse(response, (jsonValue) => TransactionInfoDTOFromJSON(jsonValue));
|
|
240
301
|
}
|
|
241
302
|
/**
|
|
@@ -247,10 +308,9 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
247
308
|
return await response.value();
|
|
248
309
|
}
|
|
249
310
|
/**
|
|
250
|
-
*
|
|
251
|
-
* Get information about unconfirmed transactions
|
|
311
|
+
* Creates request options for getUnconfirmedTransactions without sending the request
|
|
252
312
|
*/
|
|
253
|
-
async
|
|
313
|
+
async getUnconfirmedTransactionsRequestOpts(requestParameters) {
|
|
254
314
|
if (requestParameters['transactionIds'] == null) {
|
|
255
315
|
throw new runtime.RequiredError('transactionIds', 'Required parameter "transactionIds" was null or undefined when calling getUnconfirmedTransactions().');
|
|
256
316
|
}
|
|
@@ -258,13 +318,21 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
258
318
|
const headerParameters = {};
|
|
259
319
|
headerParameters['Content-Type'] = 'application/json';
|
|
260
320
|
let urlPath = `/transactions/unconfirmed`;
|
|
261
|
-
|
|
321
|
+
return {
|
|
262
322
|
path: urlPath,
|
|
263
323
|
method: 'POST',
|
|
264
324
|
headers: headerParameters,
|
|
265
325
|
query: queryParameters,
|
|
266
326
|
body: TransactionIdsToJSON(requestParameters['transactionIds']),
|
|
267
|
-
}
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Returns unconfirmed transactions for the list of identifiers in the request body. Unconfirmed transactions are accepted by a node and pending inclusion in a block. Each request item can be either a transaction ID assigned by the node or a transaction hash. Both values are returned by transaction retrieval and search endpoints, for example `GET /transactions/unconfirmed` and `GET /transactions/unconfirmed/{transactionId}`. Use this endpoint when checking multiple transactions that are accepted by a node but not yet included in a block. Use `getConfirmedTransactions` for on-chain transactions, and use `getPartialTransactions` for aggregate bonded transactions waiting for cosignatures.
|
|
331
|
+
* Get information about unconfirmed transactions
|
|
332
|
+
*/
|
|
333
|
+
async getUnconfirmedTransactionsRaw(requestParameters, initOverrides) {
|
|
334
|
+
const requestOptions = await this.getUnconfirmedTransactionsRequestOpts(requestParameters);
|
|
335
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
268
336
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TransactionInfoDTOFromJSON));
|
|
269
337
|
}
|
|
270
338
|
/**
|
|
@@ -276,10 +344,9 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
276
344
|
return await response.value();
|
|
277
345
|
}
|
|
278
346
|
/**
|
|
279
|
-
*
|
|
280
|
-
* Search confirmed transactions
|
|
347
|
+
* Creates request options for searchConfirmedTransactions without sending the request
|
|
281
348
|
*/
|
|
282
|
-
async
|
|
349
|
+
async searchConfirmedTransactionsRequestOpts(requestParameters) {
|
|
283
350
|
const queryParameters = {};
|
|
284
351
|
if (requestParameters['address'] != null) {
|
|
285
352
|
queryParameters['address'] = requestParameters['address'];
|
|
@@ -328,12 +395,20 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
328
395
|
}
|
|
329
396
|
const headerParameters = {};
|
|
330
397
|
let urlPath = `/transactions/confirmed`;
|
|
331
|
-
|
|
398
|
+
return {
|
|
332
399
|
path: urlPath,
|
|
333
400
|
method: 'GET',
|
|
334
401
|
headers: headerParameters,
|
|
335
402
|
query: queryParameters,
|
|
336
|
-
}
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Returns a paginated list of confirmed transactions matching the supplied filters. Use this endpoint when you need on-chain transactions only (already included in blocks). Use `searchUnconfirmedTransactions` for transactions that are still pending in a node pool, and use `searchPartialTransactions` for aggregate bonded transactions waiting for cosignatures. If a transaction was announced with an alias rather than an address, the address considered during filtering is the one resolved from that alias at confirmation time. For cursor-style pagination on this endpoint, set `offset` to the `id` of the last transaction from the previous page. For general pagination strategy guidance, see the `offset` and `pageNumber` query parameter descriptions.
|
|
407
|
+
* Search confirmed transactions
|
|
408
|
+
*/
|
|
409
|
+
async searchConfirmedTransactionsRaw(requestParameters, initOverrides) {
|
|
410
|
+
const requestOptions = await this.searchConfirmedTransactionsRequestOpts(requestParameters);
|
|
411
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
337
412
|
return new runtime.JSONApiResponse(response, (jsonValue) => TransactionPageFromJSON(jsonValue));
|
|
338
413
|
}
|
|
339
414
|
/**
|
|
@@ -345,10 +420,9 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
345
420
|
return await response.value();
|
|
346
421
|
}
|
|
347
422
|
/**
|
|
348
|
-
*
|
|
349
|
-
* Search partial transactions
|
|
423
|
+
* Creates request options for searchPartialTransactions without sending the request
|
|
350
424
|
*/
|
|
351
|
-
async
|
|
425
|
+
async searchPartialTransactionsRequestOpts(requestParameters) {
|
|
352
426
|
const queryParameters = {};
|
|
353
427
|
if (requestParameters['address'] != null) {
|
|
354
428
|
queryParameters['address'] = requestParameters['address'];
|
|
@@ -397,12 +471,20 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
397
471
|
}
|
|
398
472
|
const headerParameters = {};
|
|
399
473
|
let urlPath = `/transactions/partial`;
|
|
400
|
-
|
|
474
|
+
return {
|
|
401
475
|
path: urlPath,
|
|
402
476
|
method: 'GET',
|
|
403
477
|
headers: headerParameters,
|
|
404
478
|
query: queryParameters,
|
|
405
|
-
}
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Returns a paginated list of partial transactions matching the supplied filters. Use this endpoint for aggregate bonded transactions that still wait for required cosignatures. Use `searchUnconfirmedTransactions` for non-partial pending transactions, and use `searchConfirmedTransactions` once transactions are confirmed on-chain. For cursor-style pagination on this endpoint, set `offset` to the `id` of the last transaction from the previous page. For general pagination strategy guidance, see the `offset` and `pageNumber` query parameter descriptions.
|
|
483
|
+
* Search partial transactions
|
|
484
|
+
*/
|
|
485
|
+
async searchPartialTransactionsRaw(requestParameters, initOverrides) {
|
|
486
|
+
const requestOptions = await this.searchPartialTransactionsRequestOpts(requestParameters);
|
|
487
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
406
488
|
return new runtime.JSONApiResponse(response, (jsonValue) => TransactionPageFromJSON(jsonValue));
|
|
407
489
|
}
|
|
408
490
|
/**
|
|
@@ -414,10 +496,9 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
414
496
|
return await response.value();
|
|
415
497
|
}
|
|
416
498
|
/**
|
|
417
|
-
*
|
|
418
|
-
* Search unconfirmed transactions
|
|
499
|
+
* Creates request options for searchUnconfirmedTransactions without sending the request
|
|
419
500
|
*/
|
|
420
|
-
async
|
|
501
|
+
async searchUnconfirmedTransactionsRequestOpts(requestParameters) {
|
|
421
502
|
const queryParameters = {};
|
|
422
503
|
if (requestParameters['address'] != null) {
|
|
423
504
|
queryParameters['address'] = requestParameters['address'];
|
|
@@ -466,12 +547,20 @@ export class TransactionRoutesApi extends runtime.BaseAPI {
|
|
|
466
547
|
}
|
|
467
548
|
const headerParameters = {};
|
|
468
549
|
let urlPath = `/transactions/unconfirmed`;
|
|
469
|
-
|
|
550
|
+
return {
|
|
470
551
|
path: urlPath,
|
|
471
552
|
method: 'GET',
|
|
472
553
|
headers: headerParameters,
|
|
473
554
|
query: queryParameters,
|
|
474
|
-
}
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Returns a paginated list of unconfirmed transactions matching the supplied filters. Use this endpoint for transactions accepted by a node but not yet included in a block. Use `searchConfirmedTransactions` for on-chain transactions, and use `searchPartialTransactions` for aggregate bonded transactions waiting for cosignatures. For cursor-style pagination on this endpoint, set `offset` to the `id` of the last transaction from the previous page. For general pagination strategy guidance, see the `offset` and `pageNumber` query parameter descriptions.
|
|
559
|
+
* Search unconfirmed transactions
|
|
560
|
+
*/
|
|
561
|
+
async searchUnconfirmedTransactionsRaw(requestParameters, initOverrides) {
|
|
562
|
+
const requestOptions = await this.searchUnconfirmedTransactionsRequestOpts(requestParameters);
|
|
563
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
475
564
|
return new runtime.JSONApiResponse(response, (jsonValue) => TransactionPageFromJSON(jsonValue));
|
|
476
565
|
}
|
|
477
566
|
/**
|
|
@@ -10,17 +10,28 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type TransactionHashes } from '../models/TransactionHashes';
|
|
14
|
+
import { type TransactionStatusDTO } from '../models/TransactionStatusDTO';
|
|
14
15
|
export interface GetTransactionStatusRequest {
|
|
16
|
+
/**
|
|
17
|
+
* Transaction hash encoded as a 64-character hexadecimal string.
|
|
18
|
+
*/
|
|
15
19
|
hash: string;
|
|
16
20
|
}
|
|
17
21
|
export interface GetTransactionStatusesRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
18
25
|
transactionHashes: TransactionHashes;
|
|
19
26
|
}
|
|
20
27
|
/**
|
|
21
28
|
*
|
|
22
29
|
*/
|
|
23
30
|
export declare class TransactionStatusRoutesApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Creates request options for getTransactionStatus without sending the request
|
|
33
|
+
*/
|
|
34
|
+
getTransactionStatusRequestOpts(requestParameters: GetTransactionStatusRequest): Promise<runtime.RequestOpts>;
|
|
24
35
|
/**
|
|
25
36
|
* Returns the current status of the transaction identified by the given transaction hash. When checking status after announcing a transaction, it is best to query the same node that received the announce request. If that node rejects the transaction before propagation, only that node may know the detailed rejection reason. Other nodes may not know the transaction at all because it was never propagated.
|
|
26
37
|
* Get transaction status
|
|
@@ -31,6 +42,10 @@ export declare class TransactionStatusRoutesApi extends runtime.BaseAPI {
|
|
|
31
42
|
* Get transaction status
|
|
32
43
|
*/
|
|
33
44
|
getTransactionStatus(requestParameters: GetTransactionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionStatusDTO>;
|
|
45
|
+
/**
|
|
46
|
+
* Creates request options for getTransactionStatuses without sending the request
|
|
47
|
+
*/
|
|
48
|
+
getTransactionStatusesRequestOpts(requestParameters: GetTransactionStatusesRequest): Promise<runtime.RequestOpts>;
|
|
34
49
|
/**
|
|
35
50
|
* Returns the current statuses of the transactions identified by the given array of transaction hashes. When checking status after announcing transactions, it is best to query the same node that received the announce request. If that node rejects a transaction before propagation, only that node may know the detailed rejection reason. Other nodes may not know the transaction at all because it was never propagated.
|
|
36
51
|
* Get transaction statuses
|
|
@@ -12,29 +12,37 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { TransactionHashesToJSON,
|
|
15
|
+
import { TransactionHashesToJSON, } from '../models/TransactionHashes';
|
|
16
|
+
import { TransactionStatusDTOFromJSON, } from '../models/TransactionStatusDTO';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
18
19
|
*/
|
|
19
20
|
export class TransactionStatusRoutesApi extends runtime.BaseAPI {
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
-
* Get transaction status
|
|
22
|
+
* Creates request options for getTransactionStatus without sending the request
|
|
23
23
|
*/
|
|
24
|
-
async
|
|
24
|
+
async getTransactionStatusRequestOpts(requestParameters) {
|
|
25
25
|
if (requestParameters['hash'] == null) {
|
|
26
26
|
throw new runtime.RequiredError('hash', 'Required parameter "hash" was null or undefined when calling getTransactionStatus().');
|
|
27
27
|
}
|
|
28
28
|
const queryParameters = {};
|
|
29
29
|
const headerParameters = {};
|
|
30
30
|
let urlPath = `/transactionStatus/{hash}`;
|
|
31
|
-
urlPath = urlPath.replace(
|
|
32
|
-
|
|
31
|
+
urlPath = urlPath.replace('{hash}', encodeURIComponent(String(requestParameters['hash'])));
|
|
32
|
+
return {
|
|
33
33
|
path: urlPath,
|
|
34
34
|
method: 'GET',
|
|
35
35
|
headers: headerParameters,
|
|
36
36
|
query: queryParameters,
|
|
37
|
-
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns the current status of the transaction identified by the given transaction hash. When checking status after announcing a transaction, it is best to query the same node that received the announce request. If that node rejects the transaction before propagation, only that node may know the detailed rejection reason. Other nodes may not know the transaction at all because it was never propagated.
|
|
41
|
+
* Get transaction status
|
|
42
|
+
*/
|
|
43
|
+
async getTransactionStatusRaw(requestParameters, initOverrides) {
|
|
44
|
+
const requestOptions = await this.getTransactionStatusRequestOpts(requestParameters);
|
|
45
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
38
46
|
return new runtime.JSONApiResponse(response, (jsonValue) => TransactionStatusDTOFromJSON(jsonValue));
|
|
39
47
|
}
|
|
40
48
|
/**
|
|
@@ -46,10 +54,9 @@ export class TransactionStatusRoutesApi extends runtime.BaseAPI {
|
|
|
46
54
|
return await response.value();
|
|
47
55
|
}
|
|
48
56
|
/**
|
|
49
|
-
*
|
|
50
|
-
* Get transaction statuses
|
|
57
|
+
* Creates request options for getTransactionStatuses without sending the request
|
|
51
58
|
*/
|
|
52
|
-
async
|
|
59
|
+
async getTransactionStatusesRequestOpts(requestParameters) {
|
|
53
60
|
if (requestParameters['transactionHashes'] == null) {
|
|
54
61
|
throw new runtime.RequiredError('transactionHashes', 'Required parameter "transactionHashes" was null or undefined when calling getTransactionStatuses().');
|
|
55
62
|
}
|
|
@@ -57,13 +64,21 @@ export class TransactionStatusRoutesApi extends runtime.BaseAPI {
|
|
|
57
64
|
const headerParameters = {};
|
|
58
65
|
headerParameters['Content-Type'] = 'application/json';
|
|
59
66
|
let urlPath = `/transactionStatus`;
|
|
60
|
-
|
|
67
|
+
return {
|
|
61
68
|
path: urlPath,
|
|
62
69
|
method: 'POST',
|
|
63
70
|
headers: headerParameters,
|
|
64
71
|
query: queryParameters,
|
|
65
72
|
body: TransactionHashesToJSON(requestParameters['transactionHashes']),
|
|
66
|
-
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns the current statuses of the transactions identified by the given array of transaction hashes. When checking status after announcing transactions, it is best to query the same node that received the announce request. If that node rejects a transaction before propagation, only that node may know the detailed rejection reason. Other nodes may not know the transaction at all because it was never propagated.
|
|
77
|
+
* Get transaction statuses
|
|
78
|
+
*/
|
|
79
|
+
async getTransactionStatusesRaw(requestParameters, initOverrides) {
|
|
80
|
+
const requestOptions = await this.getTransactionStatusesRequestOpts(requestParameters);
|
|
81
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
67
82
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TransactionStatusDTOFromJSON));
|
|
68
83
|
}
|
|
69
84
|
/**
|
|
@@ -18,27 +18,21 @@ import type { AccountRestrictionFlagsEnum } from './AccountRestrictionFlagsEnum'
|
|
|
18
18
|
export interface AccountAddressRestrictionTransactionBodyDTO {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {AccountRestrictionFlagsEnum}
|
|
22
|
-
* @memberof AccountAddressRestrictionTransactionBodyDTO
|
|
23
21
|
*/
|
|
24
22
|
restrictionFlags: AccountRestrictionFlagsEnum;
|
|
25
23
|
/**
|
|
26
24
|
* Account restriction additions.
|
|
27
|
-
* @type {Array<string>}
|
|
28
|
-
* @memberof AccountAddressRestrictionTransactionBodyDTO
|
|
29
25
|
*/
|
|
30
26
|
restrictionAdditions: Array<string>;
|
|
31
27
|
/**
|
|
32
28
|
* Account restriction deletions.
|
|
33
|
-
* @type {Array<string>}
|
|
34
|
-
* @memberof AccountAddressRestrictionTransactionBodyDTO
|
|
35
29
|
*/
|
|
36
30
|
restrictionDeletions: Array<string>;
|
|
37
31
|
}
|
|
38
32
|
/**
|
|
39
33
|
* Check if a given object implements the AccountAddressRestrictionTransactionBodyDTO interface.
|
|
40
34
|
*/
|
|
41
|
-
export declare function instanceOfAccountAddressRestrictionTransactionBodyDTO(value:
|
|
35
|
+
export declare function instanceOfAccountAddressRestrictionTransactionBodyDTO(value: object): value is AccountAddressRestrictionTransactionBodyDTO;
|
|
42
36
|
export declare function AccountAddressRestrictionTransactionBodyDTOFromJSON(json: any): AccountAddressRestrictionTransactionBodyDTO;
|
|
43
37
|
export declare function AccountAddressRestrictionTransactionBodyDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAddressRestrictionTransactionBodyDTO;
|
|
44
38
|
export declare function AccountAddressRestrictionTransactionBodyDTOToJSON(json: any): AccountAddressRestrictionTransactionBodyDTO;
|