Documentation ¶
Index ¶
- Variables
- func ATOMInit()
- func RegisterCodec(cdc *codec.Codec)
- type AtomHandler
- func (h *AtomHandler) BuildUnsignedTransaction(fromAddress, fromPublicKey, toAddress string, amount *big.Int, ...) (transaction interface{}, digests []string, err error)
- func (h *AtomHandler) FiltTransaction(blocknumber uint64, filter types.Filter) (txhashes []string, err error)
- func (h *AtomHandler) GetAddressBalance(address string, jsonstring string) (balance types.Balance, err error)
- func (h *AtomHandler) GetDefaultFee() types.Value
- func (h *AtomHandler) GetTransactionInfo(txhash string) (*types.TransactionInfo, error)
- func (h *AtomHandler) IsToken() bool
- func (h *AtomHandler) MakeSignedTransaction(rsv []string, transaction interface{}) (signedTransaction interface{}, err error)
- func (h *AtomHandler) MakeSignedTransactionByJson(rsv []string, txjson string) (signedTransaction interface{}, err error)
- func (h *AtomHandler) PublicKeyToAddress(pubKeyHex string) (address string, err error)
- func (h *AtomHandler) SignTransaction(hash []string, privateKey interface{}) (rsv []string, err error)
- func (h *AtomHandler) SubmitTransaction(signedTransaction interface{}) (txhash string, err error)
- func (h *AtomHandler) SubmitTransactionByJson(txjson string) (txhash string, err error)
- type AtomTx
- type MsgSend
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSendAtomFee *big.Int
Functions ¶
func RegisterCodec ¶
Types ¶
type AtomHandler ¶
type AtomHandler struct{}
func NewAtomHandler ¶
func NewAtomHandler() *AtomHandler
func (*AtomHandler) BuildUnsignedTransaction ¶
func (*AtomHandler) FiltTransaction ¶
func (*AtomHandler) GetAddressBalance ¶
func (*AtomHandler) GetDefaultFee ¶
func (h *AtomHandler) GetDefaultFee() types.Value
func (*AtomHandler) GetTransactionInfo ¶
func (h *AtomHandler) GetTransactionInfo(txhash string) (*types.TransactionInfo, error)
func (h *AtomHandler) GetTransactionInfo(txhash string) (fromAddress string, txOutputs []types.TxOutput, jsonstring string, confirmed bool, fee types.Value, err error) {
func (*AtomHandler) IsToken ¶
func (h *AtomHandler) IsToken() bool
func (*AtomHandler) MakeSignedTransaction ¶
func (h *AtomHandler) MakeSignedTransaction(rsv []string, transaction interface{}) (signedTransaction interface{}, err error)
func (*AtomHandler) MakeSignedTransactionByJson ¶
func (h *AtomHandler) MakeSignedTransactionByJson(rsv []string, txjson string) (signedTransaction interface{}, err error)
func (*AtomHandler) PublicKeyToAddress ¶
func (h *AtomHandler) PublicKeyToAddress(pubKeyHex string) (address string, err error)
func (*AtomHandler) SignTransaction ¶
func (h *AtomHandler) SignTransaction(hash []string, privateKey interface{}) (rsv []string, err error)
func (*AtomHandler) SubmitTransaction ¶
func (h *AtomHandler) SubmitTransaction(signedTransaction interface{}) (txhash string, err error)
func (*AtomHandler) SubmitTransactionByJson ¶
func (h *AtomHandler) SubmitTransactionByJson(txjson string) (txhash string, err error)
type MsgSend ¶
type MsgSend struct { From sdk.AccAddress `json:"from_address"` To sdk.AccAddress `json:"to_address"` Amount sdk.Coins `json:"amount"` }
MsgSend to send coins from Input to Output
func (MsgSend) GetSignBytes ¶
Implements Msg. JSON encode the message.
func (MsgSend) GetSigners ¶
func (msg MsgSend) GetSigners() []sdk.AccAddress
Implements Msg. Return the signer.
func (MsgSend) ValidateBasic ¶
Implements Msg. Ensure the addresses are good and the amount is positive.
Click to show internal directories.
Click to hide internal directories.