api

package
v0.0.0-...-1d0a1ed Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendTxTask

func SendTxTask(url string, hash string, chainCode int64) (int64, error)

Types

type BlockResult

type BlockResult struct {
	Result  string `json:"result" gorm:"column:result"`
	Message string `json:"message" gorm:"column:message"`
	Status  string `json:"status" gorm:"column:status"`
}

func GetBlock

func GetBlock(sed int64, key string) (*BlockResult, error)

type Tx

type Tx struct {
	BlockHash         string `json:"blockHash" gorm:"column:blockHash"`
	FunctionName      string `json:"functionName" gorm:"column:functionName"`
	ContractAddress   string `json:"contractAddress" gorm:"column:contractAddress"`
	MethodID          string `json:"methodId" gorm:"column:methodId"`
	TransactionIndex  string `json:"transactionIndex" gorm:"column:transactionIndex"`
	Confirmations     string `json:"confirmations" gorm:"column:confirmations"`
	Nonce             string `json:"nonce" gorm:"column:nonce"`
	TimeStamp         string `json:"timeStamp" gorm:"column:timeStamp"`
	Input             string `json:"input" gorm:"column:input"`
	GasUsed           string `json:"gasUsed" gorm:"column:gasUsed"`
	IsError           string `json:"isError" gorm:"column:isError"`
	TxreceiptStatus   string `json:"txreceipt_status" gorm:"column:txreceipt_status"`
	BlockNumber       string `json:"blockNumber" gorm:"column:blockNumber"`
	Gas               string `json:"gas" gorm:"column:gas"`
	CumulativeGasUsed string `json:"cumulativeGasUsed" gorm:"column:cumulativeGasUsed"`
	From              string `json:"from" gorm:"column:from"`
	To                string `json:"to" gorm:"column:to"`
	Value             string `json:"value" gorm:"column:value"`
	Hash              string `json:"hash" gorm:"column:hash"`
	GasPrice          string `json:"gasPrice" gorm:"column:gasPrice"`
}

type TxResult

type TxResult struct {
	Result  []*Tx  `json:"result" gorm:"column:result"`
	Message string `json:"message" gorm:"column:message"`
	Status  string `json:"status" gorm:"column:status"`
}

func GetTx

func GetTx(address string, start, end int64, key string) (*TxResult, error)

Jump to

Keyboard shortcuts

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