Versions in this module Expand all Collapse all v0 v0.5.1 Oct 31, 2019 Changes in this version + const AccountLinkTransactionSize + const AccountPropertiesAddressModificationSize + const AccountPropertiesEntityModificationSize + const AccountPropertiesMosaicModificationSize + const AccountPropertyAddressHeader + const AccountPropertyEntityTypeHeader + const AccountPropertyMosaicHeader + const AddressSize + const AggregateBondedHeaderSize + const AliasActionSize + const AliasTransactionHeaderSize + const AmountSize + const BaseInt64Size + const BlockchainUpgradeTransactionSize + const DeadLineSize + const DefaultFeeCalculationStrategy + const DefaultMaxFee + const DefaultWebsocketReconnectionTimeout + const DurationSize + const EmptyPublicKey + const HalfOfSignature + const Hash256 + const HashTypeSize + const KeySize + const LinkActionSize + const LockSize + const MaxFeeSize + const MaxStringSize + const MessageSizeSize + const MetadataHeaderSize + const MetadataTypeSize + const MinApprovalSize + const MinRemovalSize + const ModificationsSizeSize + const ModifyContractHeaderSize + const ModifyMultisigHeaderSize + const MosaicDefinitionTransactionHeaderSize + const MosaicIdSize + const MosaicNonceSize + const MosaicOptionalPropertySize + const MosaicPropertiesHeaderSize + const MosaicPropertyIdSize + const MosaicSupplyChangeTransactionSize + const MosaicSupplyDirectionSize + const MosaicsSizeSize + const NUM_CHECKSUM_BYTES + const NamespaceBit + const NamespaceNameSizeSize + const NamespaceSize + const NamespaceTypeSize + const NetworkConfigHeaderSize + const ProofSizeSize + const PropertyModificationTypeSize + const PropertyTypeSize + const RegisterNamespaceHeaderSize + const SecretLockSize + const SecretProofHeaderSize + const SignatureSize + const SignerSize + const SizeSize + const Supply_Mutable + const TimestampNemesisBlockMilliseconds + const TransactionHeaderSize + const TransferHeaderSize + const Transferable + const TypeSize + const VersionSize + var ErrArgumentNotValid = newRespError("argument is not valid") + var ErrBlankAddress = errors.New("address is blank") + var ErrEmptyAddressesIds = errors.New("list of addresses should not be empty") + var ErrEmptyAssetIds = errors.New("AssetId's array should not be empty") + var ErrEmptyMosaicIds = errors.New("list mosaics ids must not by empty") + var ErrEmptyNamespaceIds = errors.New("list namespace ids must not by empty") + var ErrInternalError = newRespError("response is nil") + var ErrInvalidAddress = errors.New("wrong address") + var ErrInvalidHashLength = errors.New("The length of Hash is invalid") + var ErrInvalidNamespaceName = errors.New("namespace name is invalid") + var ErrInvalidOwnerPublicKey = errors.New("public owner key is invalid") + var ErrInvalidReputationConfig = errors.New("default reputation should be greater than 0 and less than 1") + var ErrInvalidRequest = newRespError("request is not valid") + var ErrInvalidSignatureLength = errors.New("The length of Signature is invalid") + var ErrMetadataEmptyAddresses = errors.New("list adresses ids must not by empty") + var ErrMetadataEmptyMosaicIds = errors.New("list mosaics ids must not by empty") + var ErrMetadataEmptyNamespaceIds = errors.New("list namespaces ids must not by empty") + var ErrMetadataNilAdress = errors.New("adress must not be blank") + var ErrMetadataNilMosaicId = errors.New("mosaicId must not be nil") + var ErrMetadataNilNamespaceId = errors.New("namespaceId must not be nil") + var ErrNamespaceTooManyPart = errors.New("too many parts") + var ErrNilAccount = errors.New("account should not be nil") + var ErrNilAddress = errors.New("address is nil") + var ErrNilAssetId = errors.New("AssetId should not be nil") + var ErrNilMosaicId = errors.New("mosaicId must not be nil") + var ErrNilMosaicProperties = errors.New("mosaic properties must not be nil") + var ErrNilNamespaceId = errors.New("namespaceId is nil or zero") + var ErrNilOrZeroHeight = errors.New("block height should not be nil or zero") + var ErrNilOrZeroLimit = errors.New("limit should not be nil or zero") + var ErrNilProof = errors.New("Proof should not be nil") + var ErrNilSecret = errors.New("Secret should not be nil") + var ErrNotAcceptedResponseStatusCode = newRespError("not accepted response status code") + var ErrResourceNotFound = newRespError("resource is not found") + var ErrUnknownBlockchainType = errors.New("Not supported Blockchain Type") + var ErrWrongBitMosaicId = errors.New("mosaicId has 64th bit") + var ErrWrongBitNamespaceId = errors.New("namespaceId doesn't have 64th bit") + var XemNamespaceId = NewNamespaceIdFromName("nem.xem") + var XpxNamespaceId = NewNamespaceIdFromName("prx.xpx") + func GenerateChecksum(b []byte) ([]byte, error) + func NewReputationConfig(minInter uint64, defaultRep float64) (*reputationConfig, error) + type AbstractTransaction struct + Deadline *Deadline + MaxFee Amount + NetworkType NetworkType + Signature string + Signer *PublicAccount + Type EntityType + Version EntityVersion + func (tx *AbstractTransaction) HasMissingSignatures() bool + func (tx *AbstractTransaction) IsConfirmed() bool + func (tx *AbstractTransaction) IsUnannounced() bool + func (tx *AbstractTransaction) IsUnconfirmed() bool + func (tx *AbstractTransaction) String() string + func (tx *AbstractTransaction) ToAggregate(signer *PublicAccount) + type Account struct + func NewAccount(networkType NetworkType, generationHash *Hash) (*Account, error) + func NewAccountFromPrivateKey(pKey string, networkType NetworkType, generationHash *Hash) (*Account, error) + func (a *Account) DecryptMessage(encryptedMessage *SecureMessage, senderPublicAccount *PublicAccount) (*PlainMessage, error) + func (a *Account) EncryptMessage(message string, recipientPublicAccount *PublicAccount) (*SecureMessage, error) + func (a *Account) Sign(tx Transaction) (*SignedTransaction, error) + func (a *Account) SignCosignatureTransaction(tx *CosignatureTransaction) (*CosignatureSignedTransaction, error) + func (a *Account) SignWithCosignatures(tx *AggregateTransaction, cosignatories []*Account) (*SignedTransaction, error) + type AccountInfo struct + AccountType AccountType + Address *Address + AddressHeight Height + LinkedAccount *PublicAccount + Mosaics []*Mosaic + PublicKey string + PublicKeyHeight Height + Reputation float64 + func (a *AccountInfo) String() string + type AccountLinkAction uint8 + const AccountLink + const AccountUnlink + type AccountLinkTransaction struct + LinkAction AccountLinkAction + RemoteAccount *PublicAccount + func NewAccountLinkTransaction(deadline *Deadline, remoteAccount *PublicAccount, linkAction AccountLinkAction, ...) (*AccountLinkTransaction, error) + func (tx *AccountLinkTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *AccountLinkTransaction) Size() int + func (tx *AccountLinkTransaction) String() string + type AccountName struct + Address *Address + Names []string + func (a *AccountName) String() string + type AccountProperties struct + Address *Address + AllowedAddresses []*Address + AllowedEntityTypes []EntityType + AllowedMosaicId []*MosaicId + BlockedAddresses []*Address + BlockedEntityTypes []EntityType + BlockedMosaicId []*MosaicId + func (a *AccountProperties) String() string + type AccountPropertiesAddressModification struct + Address *Address + ModificationType PropertyModificationType + func (mod *AccountPropertiesAddressModification) String() string + type AccountPropertiesAddressTransaction struct + Modifications []*AccountPropertiesAddressModification + PropertyType PropertyType + func NewAccountPropertiesAddressTransaction(deadline *Deadline, propertyType PropertyType, ...) (*AccountPropertiesAddressTransaction, error) + func (tx *AccountPropertiesAddressTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *AccountPropertiesAddressTransaction) Size() int + func (tx *AccountPropertiesAddressTransaction) String() string + type AccountPropertiesEntityTypeModification struct + EntityType EntityType + ModificationType PropertyModificationType + func (mod *AccountPropertiesEntityTypeModification) String() string + type AccountPropertiesEntityTypeTransaction struct + Modifications []*AccountPropertiesEntityTypeModification + PropertyType PropertyType + func NewAccountPropertiesEntityTypeTransaction(deadline *Deadline, propertyType PropertyType, ...) (*AccountPropertiesEntityTypeTransaction, error) + func (tx *AccountPropertiesEntityTypeTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *AccountPropertiesEntityTypeTransaction) Size() int + func (tx *AccountPropertiesEntityTypeTransaction) String() string + type AccountPropertiesMosaicModification struct + AssetId AssetId + ModificationType PropertyModificationType + func (mod *AccountPropertiesMosaicModification) String() string + type AccountPropertiesMosaicTransaction struct + Modifications []*AccountPropertiesMosaicModification + PropertyType PropertyType + func NewAccountPropertiesMosaicTransaction(deadline *Deadline, propertyType PropertyType, ...) (*AccountPropertiesMosaicTransaction, error) + func (tx *AccountPropertiesMosaicTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *AccountPropertiesMosaicTransaction) Size() int + func (tx *AccountPropertiesMosaicTransaction) String() string + type AccountService service + func (a *AccountService) AggregateBondedTransactions(ctx context.Context, account *PublicAccount, opt *AccountTransactionsOption) ([]*AggregateTransaction, error) + func (a *AccountService) GetAccountInfo(ctx context.Context, address *Address) (*AccountInfo, error) + func (a *AccountService) GetAccountProperties(ctx context.Context, address *Address) (*AccountProperties, error) + func (a *AccountService) GetAccountsInfo(ctx context.Context, addresses ...*Address) ([]*AccountInfo, error) + func (a *AccountService) GetAccountsProperties(ctx context.Context, addresses ...*Address) ([]*AccountProperties, error) + func (a *AccountService) GetMultisigAccountGraphInfo(ctx context.Context, address *Address) (*MultisigAccountGraphInfo, error) + func (a *AccountService) GetMultisigAccountInfo(ctx context.Context, address *Address) (*MultisigAccountInfo, error) + func (a *AccountService) IncomingTransactions(ctx context.Context, account *PublicAccount, opt *AccountTransactionsOption) ([]Transaction, error) + func (a *AccountService) OutgoingTransactions(ctx context.Context, account *PublicAccount, opt *AccountTransactionsOption) ([]Transaction, error) + func (a *AccountService) Transactions(ctx context.Context, account *PublicAccount, opt *AccountTransactionsOption) ([]Transaction, error) + func (a *AccountService) UnconfirmedTransactions(ctx context.Context, account *PublicAccount, opt *AccountTransactionsOption) ([]Transaction, error) + func (ref *AccountService) GetAccountNames(ctx context.Context, addr ...*Address) ([]*AccountName, error) + type AccountTransactionsOption struct + Id string + Ordering TransactionOrder + PageSize int + type AccountType uint8 + const MainAccount + const RemoteAccount + const RemoteUnlinkedAccount + const UnlinkedAccount + type Address struct + Address string + Type NetworkType + func EncodedStringToAddresses(addresses ...string) ([]*Address, error) + func NewAddress(address string, networkType NetworkType) *Address + func NewAddressFromBase32(encoded string) (*Address, error) + func NewAddressFromNamespace(namespaceId *NamespaceId) (*Address, error) + func NewAddressFromPublicKey(pKey string, networkType NetworkType) (*Address, error) + func NewAddressFromRaw(address string) (*Address, error) + func (ad *Address) Pretty() string + func (ad *Address) String() string + type AddressAliasTransaction struct + Address *Address + func NewAddressAliasTransaction(deadline *Deadline, address *Address, namespaceId *NamespaceId, ...) (*AddressAliasTransaction, error) + func (tx *AddressAliasTransaction) Size() int + func (tx *AddressAliasTransaction) String() string + type AddressMetadataInfo struct + Address *Address + type AggregateTransaction struct + Cosignatures []*AggregateTransactionCosignature + InnerTransactions []Transaction + func NewBondedAggregateTransaction(deadline *Deadline, innerTxs []Transaction, networkType NetworkType) (*AggregateTransaction, error) + func NewCompleteAggregateTransaction(deadline *Deadline, innerTxs []Transaction, networkType NetworkType) (*AggregateTransaction, error) + func (tx *AggregateTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *AggregateTransaction) Size() int + func (tx *AggregateTransaction) String() string + type AggregateTransactionCosignature struct + Signature string + Signer *PublicAccount + func (agt *AggregateTransactionCosignature) String() string + type AliasActionType uint8 + const AliasLink + const AliasUnlink + type AliasTransaction struct + ActionType AliasActionType + NamespaceId *NamespaceId + func (tx *AliasTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *AliasTransaction) Size() int + func (tx *AliasTransaction) String() string + type AliasType uint8 + const AddressAliasType + const MosaicAliasType + const NoneAliasType + type Amount = baseInt64 + type AssetId interface + Equals func(AssetId) bool + Id func() uint64 + Type func() AssetIdType + type AssetIdType uint8 + const MosaicAssetIdType + const NamespaceAssetIdType + type BlockChainVersion uint64 + func NewBlockChainVersion(major uint16, minor uint16, revision uint16, build uint16) BlockChainVersion + func (m BlockChainVersion) String() string + type BlockInfo struct + Beneficiary *PublicAccount + BlockHash *Hash + BlockReceiptsHash *Hash + BlockTransactionsHash *Hash + Difficulty Difficulty + FeeInterest uint32 + FeeInterestDenominator uint32 + FeeMultiplier uint32 + GenerationHash *Hash + Height Height + NumTransactions uint64 + PreviousBlockHash *Hash + Signature *Signature + Signer *PublicAccount + StateHash *Hash + Timestamp *Timestamp + TotalFee Amount + Type uint64 + Version EntityVersion + func MapBlock(m []byte) (*BlockInfo, error) + func (b *BlockInfo) String() string + type BlockMapper interface + MapBlock func(m []byte) (*BlockInfo, error) + type BlockMapperFn func(m []byte) (*BlockInfo, error) + func (p BlockMapperFn) MapBlock(m []byte) (*BlockInfo, error) + type BlockchainConfig struct + NetworkConfig *NetworkConfig + StartedHeight Height + SupportedEntityVersions *SupportedEntities + func (nc BlockchainConfig) String() string + type BlockchainService service + func (b *BlockchainService) GetBlockByHeight(ctx context.Context, height Height) (*BlockInfo, error) + func (b *BlockchainService) GetBlockTransactions(ctx context.Context, height Height) ([]Transaction, error) + func (b *BlockchainService) GetBlockchainHeight(ctx context.Context) (Height, error) + func (b *BlockchainService) GetBlockchainScore(ctx context.Context) (*ChainScore, error) + func (b *BlockchainService) GetBlockchainStorage(ctx context.Context) (*BlockchainStorageInfo, error) + func (b *BlockchainService) GetBlocksByHeightWithLimit(ctx context.Context, height Height, limit Amount) ([]*BlockInfo, error) + type BlockchainStorageInfo struct + NumAccounts int + NumBlocks int + NumTransactions int + func (b *BlockchainStorageInfo) String() string + type BlockchainTimestamp struct + func NewBlockchainTimestamp(milliseconds int64) *BlockchainTimestamp + func (m BlockchainTimestamp) String() string + func (t *BlockchainTimestamp) ToTimestamp() *Timestamp + type BlockchainUpgradeTransaction struct + NewBlockChainVersion BlockChainVersion + UpgradePeriod Duration + func NewBlockchainUpgradeTransaction(deadline *Deadline, upgradePeriod Duration, ...) (*BlockchainUpgradeTransaction, error) + func (tx *BlockchainUpgradeTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *BlockchainUpgradeTransaction) Size() int + func (tx *BlockchainUpgradeTransaction) String() string + type ChainScore [2]uint64 + func NewChainScore(scoreLow uint64, scoreHigh uint64) *ChainScore + func (m *ChainScore) String() string + type Client struct + Account *AccountService + Blockchain *BlockchainService + Contract *ContractService + Metadata *MetadataService + Mosaic *MosaicService + Namespace *NamespaceService + Network *NetworkService + Resolve *ResolverService + Transaction *TransactionService + func NewClient(httpClient *http.Client, conf *Config) *Client + func (c *Client) AdaptAccount(account *Account) (*Account, error) + func (c *Client) GenerationHash() *Hash + func (c *Client) NetworkType() NetworkType + func (c *Client) NewAccount() (*Account, error) + func (c *Client) NewAccountFromPrivateKey(pKey string) (*Account, error) + func (c *Client) NewAccountFromPublicKey(pKey string) (*PublicAccount, error) + func (c *Client) NewAccountLinkTransaction(deadline *Deadline, remoteAccount *PublicAccount, linkAction AccountLinkAction) (*AccountLinkTransaction, error) + func (c *Client) NewAccountPropertiesAddressTransaction(deadline *Deadline, propertyType PropertyType, ...) (*AccountPropertiesAddressTransaction, error) + func (c *Client) NewAccountPropertiesEntityTypeTransaction(deadline *Deadline, propertyType PropertyType, ...) (*AccountPropertiesEntityTypeTransaction, error) + func (c *Client) NewAccountPropertiesMosaicTransaction(deadline *Deadline, propertyType PropertyType, ...) (*AccountPropertiesMosaicTransaction, error) + func (c *Client) NewAddressAliasTransaction(deadline *Deadline, address *Address, namespaceId *NamespaceId, ...) (*AddressAliasTransaction, error) + func (c *Client) NewBlockchainUpgradeTransaction(deadline *Deadline, upgradePeriod Duration, ...) (*BlockchainUpgradeTransaction, error) + func (c *Client) NewBondedAggregateTransaction(deadline *Deadline, innerTxs []Transaction) (*AggregateTransaction, error) + func (c *Client) NewCompleteAggregateTransaction(deadline *Deadline, innerTxs []Transaction) (*AggregateTransaction, error) + func (c *Client) NewLockFundsTransaction(deadline *Deadline, mosaic *Mosaic, duration Duration, ...) (*LockFundsTransaction, error) + func (c *Client) NewModifyContractTransaction(deadline *Deadline, durationDelta Duration, hash *Hash, ...) (*ModifyContractTransaction, error) + func (c *Client) NewModifyMetadataAddressTransaction(deadline *Deadline, address *Address, modifications []*MetadataModification) (*ModifyMetadataAddressTransaction, error) + func (c *Client) NewModifyMetadataMosaicTransaction(deadline *Deadline, mosaicId *MosaicId, modifications []*MetadataModification) (*ModifyMetadataMosaicTransaction, error) + func (c *Client) NewModifyMetadataNamespaceTransaction(deadline *Deadline, namespaceId *NamespaceId, ...) (*ModifyMetadataNamespaceTransaction, error) + func (c *Client) NewModifyMultisigAccountTransaction(deadline *Deadline, minApprovalDelta int8, minRemovalDelta int8, ...) (*ModifyMultisigAccountTransaction, error) + func (c *Client) NewMosaicAliasTransaction(deadline *Deadline, mosaicId *MosaicId, namespaceId *NamespaceId, ...) (*MosaicAliasTransaction, error) + func (c *Client) NewMosaicDefinitionTransaction(deadline *Deadline, nonce uint32, ownerPublicKey string, ...) (*MosaicDefinitionTransaction, error) + func (c *Client) NewMosaicSupplyChangeTransaction(deadline *Deadline, assetId AssetId, supplyType MosaicSupplyType, ...) (*MosaicSupplyChangeTransaction, error) + func (c *Client) NewNetworkConfigTransaction(deadline *Deadline, delta Duration, config *NetworkConfig, ...) (*NetworkConfigTransaction, error) + func (c *Client) NewRegisterRootNamespaceTransaction(deadline *Deadline, namespaceName string, duration Duration) (*RegisterNamespaceTransaction, error) + func (c *Client) NewRegisterSubNamespaceTransaction(deadline *Deadline, namespaceName string, parentId *NamespaceId) (*RegisterNamespaceTransaction, error) + func (c *Client) NewSecretLockTransaction(deadline *Deadline, mosaic *Mosaic, duration Duration, secret *Secret, ...) (*SecretLockTransaction, error) + func (c *Client) NewSecretProofTransaction(deadline *Deadline, hashType HashType, proof *Proof, recipient *Address) (*SecretProofTransaction, error) + func (c *Client) NewTransferTransaction(deadline *Deadline, recipient *Address, mosaics []*Mosaic, message Message) (*TransferTransaction, error) + func (c *Client) NewTransferTransactionWithNamespace(deadline *Deadline, recipient *NamespaceId, mosaics []*Mosaic, message Message) (*TransferTransaction, error) + type Config struct + BaseURLs []*url.URL + GenerationHash *Hash + UsedBaseUrl *url.URL + WsReconnectionTimeout time.Duration + func NewConfig(ctx context.Context, baseUrls []string) (*Config, error) + func NewConfigWithReputation(baseUrls []string, networkType NetworkType, repConf *reputationConfig, ...) (*Config, error) + type ConfigBag struct + Comment string + Fields map[string]*Field + Index int + Name string + func NewConfigBag() *ConfigBag + func (c ConfigBag) String() string + type ConfirmedAddedMapper interface + MapConfirmedAdded func(m []byte) (Transaction, error) + func NewConfirmedAddedMapper(mapTransactionFunc mapTransactionFunc) ConfirmedAddedMapper + type ContractInfo struct + Content *Hash + Customers []string + Duration Duration + Executors []string + Multisig string + MultisigAddress *Address + Start Height + Verifiers []string + func (ref *ContractInfo) String() string + type ContractService service + func (ref *ContractService) GetContractsByAddress(ctx context.Context, address string) ([]*ContractInfo, error) + func (ref *ContractService) GetContractsInfo(ctx context.Context, contractPubKeys ...string) ([]*ContractInfo, error) + type CosignatureMapper interface + MapCosignature func(m []byte) (*SignerInfo, error) + type CosignatureMapperFn func(m []byte) (*SignerInfo, error) + func (p CosignatureMapperFn) MapCosignature(m []byte) (*SignerInfo, error) + type CosignatureSignedTransaction struct + ParentHash *Hash + Signature *Signature + Signer string + type CosignatureTransaction struct + TransactionToCosign *AggregateTransaction + func NewCosignatureTransaction(txToCosign *AggregateTransaction) (*CosignatureTransaction, error) + func NewCosignatureTransactionFromHash(hash *Hash) *CosignatureTransaction + func (tx *CosignatureTransaction) String() string + type Deadline struct + func NewDeadline(delta time.Duration) *Deadline + func NewDeadlineFromBlockchainTimestamp(timestamp *BlockchainTimestamp) *Deadline + type Difficulty = baseInt64 + type Duration = baseInt64 + type Entity struct + Name string + SupportedVersions []EntityVersion + Type EntityType + func (e Entity) String() string + type EntityType uint16 + const AccountPropertyAddress + const AccountPropertyEntityType + const AccountPropertyMosaic + const AddressAlias + const AggregateBonded + const AggregateCompleted + const Block + const BlockchainUpgrade + const LinkAccount + const Lock + const MetadataAddress + const MetadataMosaic + const MetadataNamespace + const ModifyContract + const ModifyMultisig + const MosaicAlias + const MosaicDefinition + const MosaicSupplyChange + const NemesisBlock + const NetworkConfigEntityType + const RegisterNamespace + const SecretLock + const SecretProof + const Transfer + func (t EntityType) String() string + type EntityVersion uint32 + const AccountPropertyAddressVersion + const AccountPropertyEntityTypeVersion + const AccountPropertyMosaicVersion + const AddressAliasVersion + const AggregateBondedVersion + const AggregateCompletedVersion + const BlockchainUpgradeVersion + const LinkAccountVersion + const LockVersion + const MetadataAddressVersion + const MetadataMosaicVersion + const MetadataNamespaceVersion + const ModifyContractVersion + const ModifyMultisigVersion + const MosaicAliasVersion + const MosaicDefinitionVersion + const MosaicSupplyChangeVersion + const NetworkConfigVersion + const RegisterNamespaceVersion + const SecretLockVersion + const SecretProofVersion + const TransferVersion + func ExtractVersion(version int64) EntityVersion + type FeeCalculationStrategy uint32 + const HighCalculationStrategy + const LowCalculationStrategy + const MiddleCalculationStrategy + type Field struct + Comment string + Index int + Key string + Value string + func NewField() *Field + func (c Field) String() string + type Hash [32]byte + func CalculateSecretLockInfoHash(secret *Secret, recipient *Address) (*Hash, error) + func StringToHash(hash string) (*Hash, error) + func (h Hash) Empty() bool + func (h Hash) Equal(other *Hash) bool + func (h Hash) String() string + type HashType uint8 + const HASH_160 + const KECCAK_256 + const SHA3_256 + const SHA_256 + func (ht HashType) String() string + type Height = baseInt64 + type HttpError struct + StatusCode int + type LockFundsTransaction struct + Duration Duration + func NewLockFundsTransaction(deadline *Deadline, mosaic *Mosaic, duration Duration, ...) (*LockFundsTransaction, error) + func (tx *LockFundsTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *LockFundsTransaction) Size() int + func (tx *LockFundsTransaction) String() string + type Message interface + Payload func() []byte + String func() string + Type func() MessageType + type MessageType uint8 + const PlainMessageType + const SecureMessageType + type MetadataInfo struct + Fields map[string]string + MetadataType MetadataType + type MetadataModification struct + Key string + Type MetadataModificationType + Value string + func (m *MetadataModification) Size() int + func (m *MetadataModification) String() string + type MetadataModificationType uint8 + const AddMetadata + const RemoveMetadata + func (t MetadataModificationType) String() string + type MetadataService service + func (ref *MetadataService) GetAddressMetadatasInfo(ctx context.Context, addresses ...string) ([]*AddressMetadataInfo, error) + func (ref *MetadataService) GetMetadataByAddress(ctx context.Context, address string) (*AddressMetadataInfo, error) + func (ref *MetadataService) GetMetadataByMosaicId(ctx context.Context, mosaicId *MosaicId) (*MosaicMetadataInfo, error) + func (ref *MetadataService) GetMetadataByNamespaceId(ctx context.Context, namespaceId *NamespaceId) (*NamespaceMetadataInfo, error) + func (ref *MetadataService) GetMosaicMetadatasInfo(ctx context.Context, mosaicIds ...*MosaicId) ([]*MosaicMetadataInfo, error) + func (ref *MetadataService) GetNamespaceMetadatasInfo(ctx context.Context, namespaceIds ...*NamespaceId) ([]*NamespaceMetadataInfo, error) + type MetadataType uint8 + const MetadataAddressType + const MetadataMosaicType + const MetadataNamespaceType + const MetadataNone + func (t MetadataType) String() string + type ModifyContractTransaction struct + Customers []*MultisigCosignatoryModification + DurationDelta Duration + Executors []*MultisigCosignatoryModification + Hash *Hash + Verifiers []*MultisigCosignatoryModification + func NewModifyContractTransaction(deadline *Deadline, durationDelta Duration, hash *Hash, ...) (*ModifyContractTransaction, error) + func (tx *ModifyContractTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *ModifyContractTransaction) Size() int + func (tx *ModifyContractTransaction) String() string + type ModifyMetadataAddressTransaction struct + Address *Address + func NewModifyMetadataAddressTransaction(deadline *Deadline, address *Address, modifications []*MetadataModification, ...) (*ModifyMetadataAddressTransaction, error) + func (tx *ModifyMetadataAddressTransaction) Size() int + func (tx *ModifyMetadataAddressTransaction) String() string + type ModifyMetadataMosaicTransaction struct + MosaicId *MosaicId + func NewModifyMetadataMosaicTransaction(deadline *Deadline, mosaicId *MosaicId, modifications []*MetadataModification, ...) (*ModifyMetadataMosaicTransaction, error) + func (tx *ModifyMetadataMosaicTransaction) Size() int + func (tx *ModifyMetadataMosaicTransaction) String() string + type ModifyMetadataNamespaceTransaction struct + NamespaceId *NamespaceId + func NewModifyMetadataNamespaceTransaction(deadline *Deadline, namespaceId *NamespaceId, ...) (*ModifyMetadataNamespaceTransaction, error) + func (tx *ModifyMetadataNamespaceTransaction) Size() int + func (tx *ModifyMetadataNamespaceTransaction) String() string + type ModifyMetadataTransaction struct + MetadataType MetadataType + Modifications []*MetadataModification + func (tx *ModifyMetadataTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *ModifyMetadataTransaction) Size() int + func (tx *ModifyMetadataTransaction) String() string + type ModifyMultisigAccountTransaction struct + MinApprovalDelta int8 + MinRemovalDelta int8 + Modifications []*MultisigCosignatoryModification + func NewModifyMultisigAccountTransaction(deadline *Deadline, minApprovalDelta int8, minRemovalDelta int8, ...) (*ModifyMultisigAccountTransaction, error) + func (tx *ModifyMultisigAccountTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *ModifyMultisigAccountTransaction) Size() int + func (tx *ModifyMultisigAccountTransaction) String() string + type Mosaic struct + Amount Amount + AssetId AssetId + func NewMosaic(assetId AssetId, amount Amount) (*Mosaic, error) + func Xem(amount uint64) *Mosaic + func XemRelative(amount uint64) *Mosaic + func Xpx(amount uint64) *Mosaic + func XpxRelative(amount uint64) *Mosaic + func (m *Mosaic) String() string + type MosaicAliasTransaction struct + MosaicId *MosaicId + func NewMosaicAliasTransaction(deadline *Deadline, mosaicId *MosaicId, namespaceId *NamespaceId, ...) (*MosaicAliasTransaction, error) + func (tx *MosaicAliasTransaction) Size() int + func (tx *MosaicAliasTransaction) String() string + type MosaicDefinitionTransaction struct + MosaicNonce uint32 + func NewMosaicDefinitionTransaction(deadline *Deadline, nonce uint32, ownerPublicKey string, ...) (*MosaicDefinitionTransaction, error) + func (tx *MosaicDefinitionTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *MosaicDefinitionTransaction) Size() int + func (tx *MosaicDefinitionTransaction) String() string + type MosaicId struct + func NewMosaicId(id uint64) (*MosaicId, error) + func NewMosaicIdFromNonceAndOwner(nonce uint32, ownerPublicKey string) (*MosaicId, error) + func (m *MosaicId) Equals(id AssetId) bool + func (m *MosaicId) Id() uint64 + func (m *MosaicId) String() string + func (m *MosaicId) Type() AssetIdType + type MosaicInfo struct + Height Height + MosaicId *MosaicId + Owner *PublicAccount + Properties *MosaicProperties + Revision uint32 + Supply Amount + func (m *MosaicInfo) String() string + type MosaicMetadataInfo struct + MosaicId *MosaicId + type MosaicName struct + MosaicId *MosaicId + Names []string + func (m *MosaicName) String() string + type MosaicProperties struct + OptionalProperties []MosaicProperty + func NewMosaicProperties(supplyMutable bool, transferable bool, divisibility uint8, duration Duration) *MosaicProperties + func (mp *MosaicProperties) Duration() Duration + func (mp *MosaicProperties) String() string + type MosaicPropertiesHeader struct + Divisibility uint8 + SupplyMutable bool + Transferable bool + type MosaicProperty struct + Id MosaicPropertyId + Value baseInt64 + func (mp *MosaicProperty) String() string + type MosaicPropertyId uint8 + const MosaicPropertyDivisibilityId + const MosaicPropertyDurationId + const MosaicPropertyFlagsId + type MosaicService service + func (ref *MosaicService) GetMosaicInfo(ctx context.Context, mosaicId *MosaicId) (*MosaicInfo, error) + func (ref *MosaicService) GetMosaicInfos(ctx context.Context, mscIds []*MosaicId) ([]*MosaicInfo, error) + func (ref *MosaicService) GetMosaicsNames(ctx context.Context, mscIds ...*MosaicId) ([]*MosaicName, error) + type MosaicSupplyChangeTransaction struct + Delta Amount + func NewMosaicSupplyChangeTransaction(deadline *Deadline, assetId AssetId, supplyType MosaicSupplyType, ...) (*MosaicSupplyChangeTransaction, error) + func (tx *MosaicSupplyChangeTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *MosaicSupplyChangeTransaction) Size() int + func (tx *MosaicSupplyChangeTransaction) String() string + type MosaicSupplyType uint8 + const Decrease + const Increase + func (tx MosaicSupplyType) String() string + type MultisigAccountGraphInfo struct + MultisigAccounts map[int32][]*MultisigAccountInfo + type MultisigAccountInfo struct + Account PublicAccount + Cosignatories []*PublicAccount + MinApproval int32 + MinRemoval int32 + MultisigAccounts []*PublicAccount + func (ref *MultisigAccountInfo) String() string + type MultisigCosignatoryModification struct + Type MultisigCosignatoryModificationType + func (m *MultisigCosignatoryModification) String() string + type MultisigCosignatoryModificationType uint8 + const Add + const Remove + func (t MultisigCosignatoryModificationType) String() string + type NamespaceAlias struct + Type AliasType + func (ref *NamespaceAlias) Address() *Address + func (ref *NamespaceAlias) MosaicId() *MosaicId + func (ref *NamespaceAlias) String() string + type NamespaceId struct + func GenerateNamespacePath(name string) ([]*NamespaceId, error) + func NewNamespaceId(id uint64) (*NamespaceId, error) + func NewNamespaceIdFromName(namespaceName string) (*NamespaceId, error) + func (m *NamespaceId) Equals(id AssetId) bool + func (m *NamespaceId) Id() uint64 + func (m *NamespaceId) String() string + func (m *NamespaceId) Type() AssetIdType + type NamespaceInfo struct + Active bool + Alias *NamespaceAlias + Depth int + EndHeight Height + Levels []*NamespaceId + NamespaceId *NamespaceId + Owner *PublicAccount + Parent *NamespaceInfo + StartHeight Height + TypeSpace NamespaceType + func (ref *NamespaceInfo) String() string + type NamespaceMetadataInfo struct + NamespaceId *NamespaceId + type NamespaceName struct + FullName string + NamespaceId *NamespaceId + func (n *NamespaceName) String() string + type NamespaceService service + func (ref *NamespaceService) GetLinkedAddress(ctx context.Context, namespaceId *NamespaceId) (*Address, error) + func (ref *NamespaceService) GetLinkedMosaicId(ctx context.Context, namespaceId *NamespaceId) (*MosaicId, error) + func (ref *NamespaceService) GetNamespaceInfo(ctx context.Context, nsId *NamespaceId) (*NamespaceInfo, error) + func (ref *NamespaceService) GetNamespaceInfosFromAccount(ctx context.Context, address *Address, nsId *NamespaceId, pageSize int) ([]*NamespaceInfo, error) + func (ref *NamespaceService) GetNamespaceInfosFromAccounts(ctx context.Context, addrs []*Address, nsId *NamespaceId, pageSize int) ([]*NamespaceInfo, error) + func (ref *NamespaceService) GetNamespaceNames(ctx context.Context, nsIds []*NamespaceId) ([]*NamespaceName, error) + type NamespaceType uint8 + const Root + const Sub + type NetworkConfig struct + Sections map[string]*ConfigBag + func NewNetworkConfig() *NetworkConfig + func (c *NetworkConfig) MarshalBinary() (data []byte, err error) + func (c *NetworkConfig) String() string + func (c *NetworkConfig) UnmarshalBinary(data []byte) error + type NetworkConfigTransaction struct + ApplyHeightDelta Duration + NetworkConfig *NetworkConfig + SupportedEntities *SupportedEntities + func NewNetworkConfigTransaction(deadline *Deadline, delta Duration, config *NetworkConfig, ...) (*NetworkConfigTransaction, error) + func (tx *NetworkConfigTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *NetworkConfigTransaction) Size() int + func (tx *NetworkConfigTransaction) String() string + type NetworkService struct + BlockchainService *BlockchainService + func (ref *NetworkService) GetNetworkConfig(ctx context.Context) (*BlockchainConfig, error) + func (ref *NetworkService) GetNetworkConfigAtHeight(ctx context.Context, height Height) (*BlockchainConfig, error) + func (ref *NetworkService) GetNetworkType(ctx context.Context) (NetworkType, error) + func (ref *NetworkService) GetNetworkVersion(ctx context.Context) (*NetworkVersion, error) + func (ref *NetworkService) GetNetworkVersionAtHeight(ctx context.Context, height Height) (*NetworkVersion, error) + type NetworkType uint8 + const AliasAddress + const Mijin + const MijinTest + const NotSupportedNet + const Private + const PrivateTest + const Public + const PublicTest + func ExtractNetworkType(version int64) NetworkType + func NetworkTypeFromString(networkType string) NetworkType + func (nt NetworkType) String() string + type NetworkVersion struct + BlockChainVersion BlockChainVersion + StartedHeight Height + func (nv NetworkVersion) String() string + type PartialAddedMapper interface + MapPartialAdded func(m []byte) (*AggregateTransaction, error) + func NewPartialAddedMapper(mapTransactionFunc mapTransactionFunc) PartialAddedMapper + type PartialRemovedInfo struct + Meta *TransactionInfo + func MapPartialRemoved(m []byte) (*PartialRemovedInfo, error) + type PartialRemovedMapper interface + MapPartialRemoved func(m []byte) (*PartialRemovedInfo, error) + type PartialRemovedMapperFn func(m []byte) (*PartialRemovedInfo, error) + func (p PartialRemovedMapperFn) MapPartialRemoved(m []byte) (*PartialRemovedInfo, error) + type PlainMessage struct + func NewPlainMessage(payload string) *PlainMessage + func NewPlainMessageFromEncodedData(encodedData []byte, recipient *xpxcrypto.PrivateKey, ...) (*PlainMessage, error) + func (m *PlainMessage) Message() string + func (m *PlainMessage) Payload() []byte + func (m *PlainMessage) String() string + func (m *PlainMessage) Type() MessageType + type Proof struct + Data []byte + func NewProofFromBytes(proof []byte) *Proof + func NewProofFromHexString(hexProof string) (*Proof, error) + func NewProofFromString(proof string) *Proof + func NewProofFromUint16(number uint16) *Proof + func NewProofFromUint32(number uint32) *Proof + func NewProofFromUint64(number uint64) *Proof + func NewProofFromUint8(number uint8) *Proof + func (p *Proof) ProofString() string + func (p *Proof) Secret(hashType HashType) (*Secret, error) + func (p *Proof) Size() int + func (p *Proof) String() string + type PropertyModificationType uint8 + const AddProperty + const RemoveProperty + type PropertyType uint8 + const AllowAddress + const AllowMosaic + const AllowTransaction + const BlockAddress + const BlockMosaic + const BlockTransaction + const Sentinel + type PublicAccount struct + Address *Address + PublicKey string + func NewAccountFromPublicKey(pKey string, networkType NetworkType) (*PublicAccount, error) + func (ref *PublicAccount) String() string + type RegisterNamespaceTransaction struct + Duration Duration + NamspaceName string + ParentId *NamespaceId + func NewRegisterRootNamespaceTransaction(deadline *Deadline, namespaceName string, duration Duration, ...) (*RegisterNamespaceTransaction, error) + func NewRegisterSubNamespaceTransaction(deadline *Deadline, namespaceName string, parentId *NamespaceId, ...) (*RegisterNamespaceTransaction, error) + func (tx *RegisterNamespaceTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *RegisterNamespaceTransaction) Size() int + func (tx *RegisterNamespaceTransaction) String() string + type ResolverService struct + MosaicService *MosaicService + NamespaceService *NamespaceService + func (ref *ResolverService) GetMosaicInfoByAssetId(ctx context.Context, assetId AssetId) (*MosaicInfo, error) + func (ref *ResolverService) GetMosaicInfosByAssetIds(ctx context.Context, assetIds ...AssetId) ([]*MosaicInfo, error) + type RespErr struct + func (r *RespErr) Error() string + type Secret struct + Hash Hash + Type HashType + func NewSecret(hash []byte, hashType HashType) (*Secret, error) + func NewSecretFromHexString(hash string, hashType HashType) (*Secret, error) + func (s *Secret) HashString() string + func (s *Secret) String() string + type SecretLockTransaction struct + Duration Duration + Recipient *Address + Secret *Secret + func NewSecretLockTransaction(deadline *Deadline, mosaic *Mosaic, duration Duration, secret *Secret, ...) (*SecretLockTransaction, error) + func (tx *SecretLockTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *SecretLockTransaction) Size() int + func (tx *SecretLockTransaction) String() string + type SecretProofTransaction struct + Proof *Proof + Recipient *Address + func NewSecretProofTransaction(deadline *Deadline, hashType HashType, proof *Proof, recipient *Address, ...) (*SecretProofTransaction, error) + func (tx *SecretProofTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *SecretProofTransaction) Size() int + func (tx *SecretProofTransaction) String() string + type SecureMessage struct + func NewSecureMessage(encodedData []byte) *SecureMessage + func NewSecureMessageFromPlaintText(plaintText string, sender *xpxcrypto.PrivateKey, ...) (*SecureMessage, error) + func (m *SecureMessage) Payload() []byte + func (m *SecureMessage) String() string + func (m *SecureMessage) Type() MessageType + type Signature [64]byte + func StringToSignature(signature string) (*Signature, error) + func (s Signature) String() string + type SignedTransaction struct + Hash *Hash + Payload string + type SignerInfo struct + ParentHash *Hash + Signature *Signature + Signer string + func MapCosignature(m []byte) (*SignerInfo, error) + type StatusInfo struct + Hash *Hash + Status string + func MapStatus(m []byte) (*StatusInfo, error) + type StatusMapper interface + MapStatus func(m []byte) (*StatusInfo, error) + type StatusMapperFn func(m []byte) (*StatusInfo, error) + func (p StatusMapperFn) MapStatus(m []byte) (*StatusInfo, error) + type SupportedEntities struct + Entities map[EntityType]*Entity + func NewSupportedEntities() *SupportedEntities + func (s *SupportedEntities) MarshalBinary() (data []byte, err error) + func (s *SupportedEntities) String() string + func (s *SupportedEntities) UnmarshalBinary(data []byte) error + type Timestamp struct + func NewTimestamp(milliseconds int64) *Timestamp + func (t *Timestamp) ToBlockchainTimestamp() *BlockchainTimestamp + type Transaction interface + GetAbstractTransaction func() *AbstractTransaction + Size func() int + String func() string + func MapTransaction(b *bytes.Buffer) (Transaction, error) + func MapTransactions(b *bytes.Buffer) ([]Transaction, error) + type TransactionHashesDTO struct + Hashes []string + type TransactionIdsDTO struct + Ids []string + type TransactionInfo struct + AggregateHash *Hash + AggregateId string + Height Height + Id string + Index uint32 + MerkleComponentHash *Hash + TransactionHash *Hash + func (ti *TransactionInfo) String() string + type TransactionOrder string + const TRANSACTION_ORDER_ASC + const TRANSACTION_ORDER_DESC + type TransactionService struct + BlockchainService *BlockchainService + func (txs *TransactionService) Announce(ctx context.Context, tx *SignedTransaction) (string, error) + func (txs *TransactionService) AnnounceAggregateBonded(ctx context.Context, tx *SignedTransaction) (string, error) + func (txs *TransactionService) AnnounceAggregateBondedCosignature(ctx context.Context, c *CosignatureSignedTransaction) (string, error) + func (txs *TransactionService) GetTransaction(ctx context.Context, id string) (Transaction, error) + func (txs *TransactionService) GetTransactionEffectiveFee(ctx context.Context, transactionId string) (int, error) + func (txs *TransactionService) GetTransactionStatus(ctx context.Context, id string) (*TransactionStatus, error) + func (txs *TransactionService) GetTransactionStatuses(ctx context.Context, hashes []string) ([]*TransactionStatus, error) + func (txs *TransactionService) GetTransactions(ctx context.Context, ids []string) ([]Transaction, error) + type TransactionStatus struct + Deadline *Deadline + Group string + Hash *Hash + Height Height + Status string + func (ts *TransactionStatus) String() string + type TransferTransaction struct + Message Message + Mosaics []*Mosaic + Recipient *Address + func NewTransferTransaction(deadline *Deadline, recipient *Address, mosaics []*Mosaic, message Message, ...) (*TransferTransaction, error) + func NewTransferTransactionWithNamespace(deadline *Deadline, recipient *NamespaceId, mosaics []*Mosaic, message Message, ...) (*TransferTransaction, error) + func (tx *TransferTransaction) GetAbstractTransaction() *AbstractTransaction + func (tx *TransferTransaction) MessageSize() int + func (tx *TransferTransaction) Size() int + func (tx *TransferTransaction) String() string + type UnconfirmedAddedMapper interface + MapUnconfirmedAdded func(m []byte) (Transaction, error) + func NewUnconfirmedAddedMapper(mapTransactionFunc mapTransactionFunc) UnconfirmedAddedMapper + type UnconfirmedRemoved struct + Meta *TransactionInfo + func MapUnconfirmedRemoved(m []byte) (*UnconfirmedRemoved, error) + type UnconfirmedRemovedMapper interface + MapUnconfirmedRemoved func(m []byte) (*UnconfirmedRemoved, error) + type UnconfirmedRemovedMapperFn func(m []byte) (*UnconfirmedRemoved, error) + func (p UnconfirmedRemovedMapperFn) MapUnconfirmedRemoved(m []byte) (*UnconfirmedRemoved, error) + type VarSize uint32 + const ByteSize + const IntSize + const ShortSize + type WsMessageInfo struct + Address *Address + ChannelName string + type WsMessageInfoDTO struct + Meta wsMessageInfoMetaDTO + func (dto *WsMessageInfoDTO) ToStruct() (*WsMessageInfo, error)