Documentation ¶
Index ¶
- type AbstractTransaction
- type Chain
- type Common
- type CommonTransaction
- type ConsModif
- type Data
- type Error
- type ImportanceTransfer
- type Levy
- type Message
- type MessageType
- type Mosaic
- type MosaicDefinition
- type MosaicDefinitionCreationTransaction
- func (t *MosaicDefinitionCreationTransaction) GetCommon() *CommonTransaction
- func (t *MosaicDefinitionCreationTransaction) GetMosaic() MosaicDefinition
- func (t *MosaicDefinitionCreationTransaction) GetMosaicId() MosaicID
- func (t *MosaicDefinitionCreationTransaction) GetMosaicTx() *MosaicDefinitionCreationTransaction
- func (t *MosaicDefinitionCreationTransaction) GetTx() Transaction
- func (t *MosaicDefinitionCreationTransaction) GetType() int
- func (t *MosaicDefinitionCreationTransaction) String() string
- type MosaicID
- type MosaicsData
- type MultisigAggregateModific
- type MultisigSignatureTransaction
- type MultisigTransaction
- type Node
- type Properties
- type ProvisionNamespaceTransaction
- type SignatureT
- type Supply
- type Transaction
- type TransactionMosaic
- type TransactionResponce
- type TransferTransaction
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractTransaction ¶
type AbstractTransaction struct { TimeStamp int64 `json:"timeStamp,omitempty"` Amount float64 `json:"amount,omitempty"` Fee float64 `json:"fee,omitempty"` Recipient string `json:"recipient,omitempty"` Type int `json:"type,omitempty"` Deadline int64 `json:"deadline,omitempty"` Message *Message `json:"message,omitempty"` Version int `json:"version,omitempty"` Signer string `json:"signer,omitempty"` }
type CommonTransaction ¶
type CommonTransaction struct { Type int Version int Signer string TimeStamp int64 Fee float64 Deadline int64 }
func (*CommonTransaction) String ¶
func (c *CommonTransaction) String() string
type ImportanceTransfer ¶
type MessageType ¶
type Mosaic ¶
type Mosaic struct { MosaicID MosaicID `json:"mosaicID,omitempty"` Quantity float64 `json:"quantity,omitempty"` }
A mosaic describes an instance of a mosaic definition. Mosaics can be transferred by means of a transfer transaction.
type MosaicDefinition ¶
type MosaicDefinition struct { Creator string `json:"creator"` Description string `json:"description"` ID MosaicID `json:"id,omitempty"` Properties []Properties `json:"properties"` Levy Levy `json:"levy,omitempty"` }
A mosaic definition describes an asset class. Some fields are mandatory while others are optional. The properties of a mosaic definition always have a default value and only need to be supplied if they differ from the default value.
type MosaicDefinitionCreationTransaction ¶
type MosaicDefinitionCreationTransaction struct { CommonTransaction CreationFee float64 `json:"creationFee"` CreationFeeSink string `json:"creationFeeSink"` MosaicDefinition MosaicDefinition `json:"mosaicDefinition"` }
Before a mosaic can be created or transferred, a corresponding definition of the mosaic has to be created and published to the network. This is done via a mosaic definition creation transaction.
func (*MosaicDefinitionCreationTransaction) GetCommon ¶
func (t *MosaicDefinitionCreationTransaction) GetCommon() *CommonTransaction
func (*MosaicDefinitionCreationTransaction) GetMosaic ¶
func (t *MosaicDefinitionCreationTransaction) GetMosaic() MosaicDefinition
func (*MosaicDefinitionCreationTransaction) GetMosaicId ¶
func (t *MosaicDefinitionCreationTransaction) GetMosaicId() MosaicID
func (*MosaicDefinitionCreationTransaction) GetMosaicTx ¶
func (t *MosaicDefinitionCreationTransaction) GetMosaicTx() *MosaicDefinitionCreationTransaction
func (*MosaicDefinitionCreationTransaction) GetTx ¶
func (t *MosaicDefinitionCreationTransaction) GetTx() Transaction
func (*MosaicDefinitionCreationTransaction) GetType ¶
func (t *MosaicDefinitionCreationTransaction) GetType() int
func (*MosaicDefinitionCreationTransaction) String ¶
func (t *MosaicDefinitionCreationTransaction) String() string
type MosaicID ¶
type MosaicsData ¶
func (*MosaicsData) String ¶
func (m *MosaicsData) String() string
type MultisigSignatureTransaction ¶
type MultisigSignatureTransaction struct { TimeStamp int64 `json:"timeStamp"` Fee int `json:"fee"` Type int `json:"type"` Deadline int64 `json:"deadline"` Version int `json:"version"` Signer string `json:"signer"` OtherHash struct { Data string `json:"data"` } `json:"otherHash"` OtherAccount string `json:"otherAccount"` }
type MultisigTransaction ¶
type MultisigTransaction struct { CommonTransaction OtherTrans interface{} `json:"otherTrans"` Signatures []MultisigSignatureTransaction `json:"signatures,omitempty"` }
func (*MultisigTransaction) GetCommon ¶
func (t *MultisigTransaction) GetCommon() *CommonTransaction
func (*MultisigTransaction) GetTx ¶
func (t *MultisigTransaction) GetTx() Transaction
func (*MultisigTransaction) GetType ¶
func (t *MultisigTransaction) GetType() int
func (*MultisigTransaction) String ¶
func (t *MultisigTransaction) String() string
type Properties ¶
type ProvisionNamespaceTransaction ¶
type ProvisionNamespaceTransaction struct { CommonTransaction RentalFeeSink string `json:"rentalFeeSink"` RentalFee float64 `json:"rentalFee"` NewPart string `json:"newPart"` Parent string `json:"parent"` }
func (*ProvisionNamespaceTransaction) GetCommon ¶
func (t *ProvisionNamespaceTransaction) GetCommon() *CommonTransaction
func (*ProvisionNamespaceTransaction) GetTx ¶
func (t *ProvisionNamespaceTransaction) GetTx() Transaction
func (*ProvisionNamespaceTransaction) GetType ¶
func (t *ProvisionNamespaceTransaction) GetType() int
func (*ProvisionNamespaceTransaction) String ¶
func (t *ProvisionNamespaceTransaction) String() string
type SignatureT ¶
type Transaction ¶
type Transaction interface { GetType() int GetCommon() *CommonTransaction String() string }
type TransactionMosaic ¶
type TransactionMosaic struct { AbstractTransaction Signature string `json:"signature"` Mosaics []MosaicsData `json:"mosaics"` }
func (*TransactionMosaic) GetCommon ¶
func (t *TransactionMosaic) GetCommon() *CommonTransaction
func (*TransactionMosaic) GetType ¶
func (t *TransactionMosaic) GetType() int
func (*TransactionMosaic) String ¶
func (t *TransactionMosaic) String() string
type TransactionResponce ¶
type TransactionResponce struct { TimeStamp int64 `json:"timeStamp"` Amount float64 `json:"amount"` Fee float64 `json:"fee"` Recipient string `json:"recipient,omitempty"` Type int `json:"type,omitempty"` Deadline int64 `json:"deadline"` Message *Message `json:"message,omitempty"` Version int `json:"version,omitempty"` Signer string `json:"signer,omitempty"` OtherTrans Transaction `json:"otherTrans,omitempty"` Signatures []MultisigSignatureTransaction `json:"signatures,omitempty"` }
type TransferTransaction ¶
type TransferTransaction struct { CommonTransaction Amount float64 `json:"amount,omitempty"` Recipient string `json:"recipient,omitempty"` Message Message `json:"message,omitempty"` Signature string `json:"signature,omitempty"` Mosaics []Mosaic `json:"mosaics,omitempty"` }
func (*TransferTransaction) GetCommon ¶
func (t *TransferTransaction) GetCommon() *CommonTransaction
func (*TransferTransaction) GetTx ¶
func (t *TransferTransaction) GetTx() Transaction
func (*TransferTransaction) GetType ¶
func (t *TransferTransaction) GetType() int
func (*TransferTransaction) String ¶
func (t *TransferTransaction) String() string
type Tx ¶
type Tx interface {
GetTx() Transaction
}
Click to show internal directories.
Click to hide internal directories.