resp

package
v0.43.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmountResp added in v0.43.0

type AmountResp struct {
	Value   string `json:"value"`
	UdtHash string `json:"udt_hash"`
	Status  string `json:"status"`
}

type Balance

type Balance struct {
	KeyAddress    string `json:"key_address"`
	UdtHash       string `json:"udt_hash"`
	Unconstrained string `json:"unconstrained"`
	Fleeting      string `json:"fleeting"`
	Locked        string `json:"locked"`
}

type GenericBlockResponse added in v0.43.0

type GenericBlockResponse struct {
	BlockNumber     uint64                    `json:"block_number"`
	BlockHash       string                    `json:"block_hash"`
	ParentBlockHash string                    `json:"parent_block_hash"`
	Timestamp       uint64                    `json:"timestamp"`
	Transactions    []*GenericTransactionResp `json:"transactions"`
}

type GenericTransactionResp added in v0.43.0

type GenericTransactionResp struct {
	TxHash     string           `json:"tx_hash"`
	Operations []*OperationResp `json:"operations"`
}

type GetBalanceResponse added in v0.43.0

type GetBalanceResponse struct {
	BlockNum string     `json:"block_num,omitempty"`
	Balances []*Balance `json:"balances"`
}

type GetGenericTransactionResponse added in v0.43.0

type GetGenericTransactionResponse struct {
	Transaction     GenericTransactionResp `json:"transaction"`
	Status          string                 `json:"status"`
	BlockHash       string                 `json:"block_hash"`
	BlockNumber     uint64                 `json:"block_number"`
	ConfirmedNumber uint64                 `json:"confirmed_number"`
}

type OperationResp added in v0.43.0

type OperationResp struct {
	Id            uint       `json:"id"`
	KeyAddress    string     `json:"key_address"`
	NormalAddress string     `json:"normal_address"`
	Amount        AmountResp `json:"amount"`
}

type QueryGenericTransactionsResponse added in v0.43.0

type QueryGenericTransactionsResponse struct {
	Txs        []*GenericTransactionResp `json:"txs"`
	TotalCount uint64                    `json:"total_count"`
	NextOffset uint64                    `json:"next_offset"`
}

type ScriptGroup

type ScriptGroup struct {
	Group       []int
	WitnessArgs *types.WitnessArgs
	PubKey      string
}

type SignatureEntry

type SignatureEntry struct {
	Type     string `json:"type"`
	Index    int    `json:"index"`
	PubKey   string `json:"pub_key"`
	GroupLen int    `json:"group_len"`
}

type TransferCompletionResponse

type TransferCompletionResponse struct {
	TxView    transactionResp   `json:"tx_view"`
	SigsEntry []*SignatureEntry `json:"sigs_entry"`
}

func (*TransferCompletionResponse) GetScriptGroup

func (self *TransferCompletionResponse) GetScriptGroup() []*ScriptGroup

func (*TransferCompletionResponse) GetTransaction

func (self *TransferCompletionResponse) GetTransaction() *types.Transaction

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL