Versions in this module Expand all Collapse all v1 v1.0.2 Aug 10, 2020 Changes in this version + const NAI_HDB + const NAI_HIVE + const NAI_SDB + const NAI_STEEM + const NAI_TDB + const NAI_TESTS + const NAI_VESTS + func GetNai(coin string) string + func GetPrecision(coin string) uint8 + func RemoveFillChar(nai string) string + type Amount struct + Amount []byte + Nai []byte + Precision byte + func (a *Amount) Decode(offset int, data []byte) (int, error) + func (a *Amount) DecodeRaw() interface{} + func (a *Amount) Encode() *[]byte + type AmountJson struct + Amount string + From string + Memo string + To string + type Extension struct + func (e *Extension) Decode(offset int, data []byte) (int, error) + func (e *Extension) Encode() *[]byte + type OpType uint8 + const Comment + const Transfer + const Vote + type Operation interface + InitData func(data *RawOperation) error + func NewOperation(opType OpType) Operation + type RawAmount struct + Amount uint64 + Nai string + Precision uint8 + func CreateAmount(amount, nai string) (*RawAmount, error) + func (a *RawAmount) ParseToBroadcastJson() interface{} + type RawOperation interface + OpType func() OpType + ParseToBroadcastJson func() interface{} + func NewRawOperation(opType OpType) RawOperation + type RawTransaction struct + Expiration time.Time + Extensions *[]Extension + Operations *[]RawOperation + RefBlockNum uint16 + RefBlockPrefix uint32 + Signatures *[]string + func (rt *RawTransaction) Decoder(data []byte) error + func (rt *RawTransaction) Encode() (*Transaction, error) + func (rt *RawTransaction) ParseToBroadcastJson() interface{} + type RawTransferOperation struct + Amount RawAmount + From string + Memo string + To string + Type OpType + func (txOp *RawTransferOperation) OpType() OpType + func (txOp *RawTransferOperation) ParseToBroadcastJson() interface{} + type Signature []byte + type Transaction struct + Expiration []byte + Extensions *[]Extension + Operations *[]Operation + RefBlockNum []byte + RefBlockPrefix []byte + Signatures *[]Signature + func (tx *Transaction) Decode(offset int, data []byte) (int, error) + func (tx *Transaction) DecodeRaw() interface{} + func (tx *Transaction) Encode() *[]byte + func (tx *Transaction) EncodeForSign() *[]byte + func (tx Transaction) Digest(chainId string) ([]byte, error) + type TransferJson struct + Expiration string + Extensions []string + Operations []interface{} + RefBlockNum uint16 + RefBlockPrefix uint32 + Signatures []string + type TransferOperation struct + Amount *Amount + From []byte + Memo []byte + To []byte + Type byte + func (txOp *TransferOperation) Decode(offset int, data []byte) (int, error) + func (txOp *TransferOperation) DecodeRaw() interface{} + func (txOp *TransferOperation) Encode() *[]byte + func (txOp *TransferOperation) InitData(data *RawOperation) error + type TxEncoder interface + Decode func(offset int, data []byte) (int, error) + DecodeRaw func() interface{} + Encode func() *[]byte