Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountResponse ¶
type AccountResponse struct {
Account Account `json:"account"`
}
type Block ¶
type Block struct { Hash string `json:"hash"` Version uint32 `json:"version"` DataHash string `json:"dataHash"` PrevBlockHash string `json:"prevBlockHash"` Height int32 `json:"height"` Timestamp int64 `json:"timestamp"` Signer string `json:"signer"` Extra string `json:"extra"` Signature Signature `json:"signature"` TxCount uint32 `json:"txCount"` Transactions []string `json:"transactions"` }
type BlockResponse ¶
type BlockResponse struct {
Block Block `json:"block"`
}
func CreateBlockResponse ¶
func CreateBlockResponse(block Block) BlockResponse
type BlocksResponse ¶
func CreateBlocksResponse ¶
func CreateBlocksResponse(blocks []Block, totalCount uint32) BlocksResponse
type FaucetRequest ¶
type FaucetRequest struct {
AccountAddress string `json:"accountAddress"`
}
type Signature ¶
func CreateSignature ¶
type Signer ¶
func CreateSigner ¶
type Transaction ¶
type Transaction struct { Hash string `json:"hash"` Nonce string `json:"nonce"` BlockHeight int32 `json:"blockHeight"` Timestamp int64 `json:"timestamp"` From string `json:"from"` To string `json:"to"` Value string `json:"value"` Data string `json:"data"` Signer Signer `json:"signer"` Signature Signature `json:"signature"` }
type TransactionRequest ¶
type TransactionRequest struct { Nonce string `json:"nonce"` From string `json:"from"` To string `json:"to"` Value string `json:"value"` Data string `json:"data"` SignerX string `json:"signerX"` SignerY string `json:"signerY"` SignatureR string `json:"signatureR"` SignatureS string `json:"signatureS"` }
type TransactionResponse ¶
type TransactionResponse struct {
Transaction Transaction `json:"transaction"`
}
func CreateTransactionResponse ¶
func CreateTransactionResponse(transaction Transaction) TransactionResponse
type TransactionsResponse ¶
type TransactionsResponse struct { Transactions []Transaction `json:"transactions"` TotalCount uint32 `json:"totalCount"` }
func CreateTransactionsResponse ¶
func CreateTransactionsResponse(transactions []Transaction, totalCount uint32) TransactionsResponse
Click to show internal directories.
Click to hide internal directories.