Documentation ¶
Index ¶
- 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
- type MosaicID
- type MultisigAggregateModific
- type MultisigSignatureTransaction
- type MultisigTransaction
- type Node
- type Properties
- type ProvisionNamespaceTransaction
- type SignatureT
- type Supply
- type Transaction
- type TransactionResponce
- type TransferTransaction
- type Tx
- type TxDict
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonTransaction ¶
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 { TimeStamp int64 `json:"timeStamp"` Fee float64 `json:"fee"` Type int `json:"type"` Deadline int64 `json:"deadline"` Version int `json:"version"` Signer string `json:"signer"` 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
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 { TimeStamp int64 `json:"timeStamp"` Fee float64 `json:"fee"` Type int `json:"type"` Deadline int64 `json:"deadline"` Version int `json:"version"` Signer string `json:"signer"` 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
type Properties ¶
type ProvisionNamespaceTransaction ¶
type ProvisionNamespaceTransaction struct { TimeStamp int64 `json:"timeStamp"` Fee float64 `json:"fee"` Type int `json:"type"` Deadline int64 `json:"deadline"` Version int `json:"version"` Signer string `json:"signer"` 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
type SignatureT ¶
type Transaction ¶
type Transaction 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"` }
func (*Transaction) GetCommon ¶
func (t *Transaction) GetCommon() CommonTransaction
func (*Transaction) GetTx ¶
func (t *Transaction) GetTx() Transaction
func (*Transaction) GetType ¶
func (t *Transaction) GetType() int
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"` Mosaics []Mosaic `json:"mosaics,omitempty"` OtherTrans TransferTransaction `json:"otherTrans,omitempty"` Signatures []MultisigSignatureTransaction `json:"signatures,omitempty"` }
type TransferTransaction ¶
type TransferTransaction struct { TimeStamp int64 `json:"timeStamp,omitempty"` Amount float64 `json:"amount,omitempty"` Signature string `json:"signature,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"` 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
type Tx ¶
type Tx interface { GetType() int GetTx() Transaction }
type TxDict ¶
type TxDict interface {
GetCommon() CommonTransaction
}
Click to show internal directories.
Click to hide internal directories.