Documentation
¶
Index ¶
Constants ¶
View Source
const ( Balannce_Transfer = "0400" Balannce_Transfer_name = "transfer" Default_Period = 50 SigningBitV4 = byte(0x84) Compact_U32 = "Compact<u32>" AccounntIDFollow = false )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MethodTransfer ¶
func NewMethodTransfer ¶
func NewMethodTransfer(pubkey string, amount uint64) (*MethodTransfer, error)
func (MethodTransfer) ToBytes ¶
func (mt MethodTransfer) ToBytes() ([]byte, error)
type TxPayLoad ¶
type TxPayLoad struct {
Method []byte
Era []byte
Nonce []byte
Fee []byte
SpecVersion []byte
GenesisHash []byte
BlockHash []byte
}
func (TxPayLoad) ToBytesString ¶
type TxStruct ¶
type TxStruct struct {
//MethodName string `json:"method_name"`
//Version int `json:"version"`
SenderPubkey string `json:"sender_pubkey"`
RecipientPubkey string `json:"recipient_pubkey"`
Amount uint64 `json:"amount"`
Nonce uint64 `json:"nonce"`
Fee uint64 `json:"fee"`
BlockHeight uint64 `json:"block_height"`
BlockHash string `json:"block_hash"`
GenesisHash string `json:"genesis_hash"`
SpecVersion uint32 `json:"spec_version"`
}
func NewTxStructFromJSON ¶
func (TxStruct) CreateEmptyTransactionAndMessage ¶
func (TxStruct) GetSignedTransaction ¶
func (TxStruct) NewTxPayLoad ¶
func (TxStruct) ToJSONString ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.