Documentation
¶
Index ¶
- func Close()
- func Delete(key string)
- func Deposit(userKey string, amount *big.Int) error
- func Get(key string) string
- func GetBalance(userKey string) string
- func GetSeq(seq float64) string
- func Open()
- func Put(key string, value string)
- func PutSeq(seq float64)
- func PutTx(tx *Transaction)
- func UpdateBalance(userKey string, balanceChange string) error
- func Withdraw(userKey string, amount *big.Int) error
- type Transaction
- type TxOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBalance ¶
func PutTx ¶
func PutTx(tx *Transaction)
func UpdateBalance ¶
Types ¶
type Transaction ¶
type Transaction struct { TxHash string FromAddress string TxOutputs []TxOutput Fee uint32 Confirmed bool }
一个EOS transaction可以包含多个transfer, 对应TxOutputs
func GetTx ¶
func GetTx(txhash string) *Transaction
func (*Transaction) String ¶
func (tx *Transaction) String() string
Click to show internal directories.
Click to hide internal directories.