Documentation ¶
Index ¶
- func CreateRawTx(cmd *cobra.Command, to string, amount float64, note string, isWithdraw bool, ...) (string, error)
- func FormatAmountDisplay2Value(amount float64) int64
- func FormatAmountValue2Display(amount int64) string
- func GetAmountValue(cmd *cobra.Command, field string) int64
- func GetExecAddr(exec string) (string, error)
- func SendToAddress(rpcAddr string, from string, to string, amount int64, note string, ...)
- type AccountResult
- type AccountsResult
- type AddrOverviewResult
- type AllExecBalance
- type BlockDetailResult
- type BlockDetailsResult
- type BlockResult
- type CoinsGenesisCLI
- type CoinsTransferCLI
- type CoinsTransferToExecCLI
- type CoinsWithdrawCLI
- type ExecAccount
- type GetTicketMinerInfoResult
- type GetTicketStatisticResult
- type GetTotalCoinsResult
- type HashlockLockCLI
- type KeyInput
- type KeyOutput
- type Privacy2PrivacyCLI
- type Privacy2PublicCLI
- type PrivacyInput
- type PrivacyOutput
- type Public2PrivacyCLI
- type ReceiptAccountTransfer
- type ReceiptExecAccountTransfer
- type ReceiptPrivacyOutput
- type TicketMinerCLI
- type TokenAccountResult
- type TokenPreCreateCLI
- type TxDetailResult
- type TxDetailsResult
- type TxListResult
- type TxResult
- type UTXOGlobalIndex
- type WalletResult
- type WalletTxDetailResult
- type WalletTxDetailsResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRawTx ¶
func FormatAmountDisplay2Value ¶
FormatAmountDisplay2Value 将显示、输入的amount值格式话成传输、计算值
func FormatAmountValue2Display ¶
FormatAmountValue2Display 将传输、计算的amount值格式化成显示值
func GetAmountValue ¶
GetAmountValue 将命令行中的amount值转换成int64
func GetExecAddr ¶
Types ¶
type AccountResult ¶
type AccountResult struct { Currency int32 `json:"currency,omitempty"` Balance string `json:"balance,omitempty"` Frozen string `json:"frozen,omitempty"` Addr string `json:"addr,omitempty"` }
func DecodeAccount ¶
func DecodeAccount(acc *types.Account, precision int64) *AccountResult
type AccountsResult ¶
type AccountsResult struct {
Wallets []*WalletResult `json:"wallets"`
}
type AddrOverviewResult ¶
type AllExecBalance ¶
type AllExecBalance struct { Addr string `json:"addr"` ExecAccount []*ExecAccount `json:"execAccount"` }
type BlockDetailResult ¶
type BlockDetailResult struct { Block *BlockResult `json:"block"` Receipts []*rpctypes.ReceiptDataResult `json:"receipts"` }
type BlockDetailsResult ¶
type BlockDetailsResult struct {
Items []*BlockDetailResult `json:"items"`
}
type BlockResult ¶
type CoinsGenesisCLI ¶
type CoinsTransferCLI ¶
type CoinsTransferCLI struct { Cointoken string `json:"cointoken,omitempty"` Amount string `json:"amount,omitempty"` Note string `json:"note,omitempty"` To string `json:"to,omitempty"` }
decodetx
type CoinsTransferToExecCLI ¶
type CoinsWithdrawCLI ¶
type ExecAccount ¶
type ExecAccount struct { Execer string `json:"execer"` Account *AccountResult `json:"account"` }
type GetTicketMinerInfoResult ¶
type GetTicketMinerInfoResult struct { TicketId string `json:"ticketId"` Status string `json:"status"` PrevStatus string `json:"prevStatus"` IsGenesis bool `json:"isGenesis"` CreateTime string `json:"createTime"` MinerTime string `json:"minerTime"` CloseTime string `json:"closeTime"` MinerValue int64 `json:"minerValue,omitempty"` MinerAddress string `json:"minerAddress,omitempty"` }
type GetTotalCoinsResult ¶
type HashlockLockCLI ¶
type KeyInput ¶
type KeyInput struct { Amount string `json:"amount,omitempty"` UtxoGlobalIndex []*UTXOGlobalIndex `json:"utxoGlobalIndex,omitempty"` KeyImage string `json:"keyImage,omitempty"` }
type KeyOutput ¶
type KeyOutput struct { Amount string `json:"amount,omitempty"` Onetimepubkey string `json:"onetimepubkey,omitempty"` }
privacy output
type Privacy2PrivacyCLI ¶
type Privacy2PrivacyCLI struct { Tokenname string `json:"tokenname,omitempty"` Amount string `json:"amount,omitempty"` Note string `json:"note,omitempty"` Input *PrivacyInput `json:"input,omitempty"` Output *PrivacyOutput `json:"output,omitempty"` }
type Privacy2PublicCLI ¶
type Privacy2PublicCLI struct { Tokenname string `json:"tokenname,omitempty"` Amount string `json:"amount,omitempty"` Note string `json:"note,omitempty"` Input *PrivacyInput `json:"input,omitempty"` Output *PrivacyOutput `json:"output,omitempty"` }
type PrivacyInput ¶
type PrivacyInput struct {
Keyinput []*KeyInput `json:"keyinput,omitempty"`
}
type PrivacyOutput ¶
type Public2PrivacyCLI ¶
type Public2PrivacyCLI struct { Tokenname string `json:"tokenname,omitempty"` Amount string `json:"amount,omitempty"` Note string `json:"note,omitempty"` Output *PrivacyOutput `json:"output,omitempty"` }
type ReceiptAccountTransfer ¶
type ReceiptAccountTransfer struct { Prev *AccountResult `protobuf:"bytes,1,opt,name=prev" json:"prev,omitempty"` Current *AccountResult `protobuf:"bytes,2,opt,name=current" json:"current,omitempty"` }
type ReceiptExecAccountTransfer ¶
type ReceiptExecAccountTransfer struct { ExecAddr string `protobuf:"bytes,1,opt,name=execAddr" json:"execAddr,omitempty"` Prev *AccountResult `protobuf:"bytes,2,opt,name=prev" json:"prev,omitempty"` Current *AccountResult `protobuf:"bytes,3,opt,name=current" json:"current,omitempty"` }
type ReceiptPrivacyOutput ¶
type TicketMinerCLI ¶
type TokenAccountResult ¶
type TokenPreCreateCLI ¶
type TxDetailResult ¶
type TxDetailResult struct { Tx *TxResult `json:"tx"` Receipt *rpctypes.ReceiptDataResult `json:"receipt"` Proofs []string `json:"proofs,omitempty"` Height int64 `json:"height"` Index int64 `json:"index"` Blocktime int64 `json:"blocktime"` Amount string `json:"amount"` Fromaddr string `json:"fromaddr"` ActionName string `json:"actionname"` Assets []*types.Asset `json:"assets"` }
type TxDetailsResult ¶
type TxDetailsResult struct {
Txs []*TxDetailResult `json:"txs"`
}
type TxListResult ¶
type TxListResult struct {
Txs []*TxResult `json:"txs"`
}
type TxResult ¶
type TxResult struct { Execer string `json:"execer"` Payload interface{} `json:"payload"` RawPayload string `json:"rawpayload"` Signature *rpctypes.Signature `json:"signature"` Fee string `json:"fee"` Expire int64 `json:"expire"` Nonce int64 `json:"nonce"` To string `json:"to"` Amount string `json:"amount,omitempty"` From string `json:"from,omitempty"` GroupCount int32 `json:"groupCount,omitempty"` Header string `json:"header,omitempty"` Next string `json:"next,omitempty"` }
func DecodeTransaction ¶
func DecodeTransaction(tx *rpctypes.Transaction) *TxResult
type UTXOGlobalIndex ¶
type WalletResult ¶
type WalletResult struct { Acc *AccountResult `json:"acc,omitempty"` Label string `json:"label,omitempty"` }
type WalletTxDetailResult ¶
type WalletTxDetailResult struct { Tx *TxResult `json:"tx"` Receipt *rpctypes.ReceiptDataResult `json:"receipt"` Height int64 `json:"height"` Index int64 `json:"index"` Blocktime int64 `json:"blocktime"` Amount string `json:"amount"` Fromaddr string `json:"fromaddr"` Txhash string `json:"txhash"` ActionName string `json:"actionname"` }
type WalletTxDetailsResult ¶
type WalletTxDetailsResult struct {
TxDetails []*WalletTxDetailResult `json:"txDetails"`
}
Click to show internal directories.
Click to hide internal directories.