command

package
v0.0.0-...-62ee579 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: GPL-3.0, Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BtcQuery            uint8 = 0x20
	BtcQueryTransaction uint8 = 0x21
)
View Source
const (
	PostTransaction uint8 = 0x00
	DirectPost      uint8 = 0x01 // Directly send payload to rpc
)
View Source
const (
	EthQuery            uint8 = 0x10
	EthQueryTransaction uint8 = 0x11
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BtcQueryRequest

type BtcQueryRequest struct {
	Min    *big.Int
	Max    *big.Int
	Target string
}

Request Types

type BtcQueryResponse

type BtcQueryResponse struct {
	Utxo string
}

Response Types

type BtcQueryTransactionRequest

type BtcQueryTransactionRequest struct {
	TxHash string
}

type BtcQueryTransactionResponse

type BtcQueryTransactionResponse struct {
	Tx string
}

type EthQueryRequest

type EthQueryRequest struct {
	From  string
	To    string
	Value *big.Int
	Data  string
}

Request Types

type EthQueryResponse

type EthQueryResponse struct {
	Nonce      string
	GasPrice   string
	GasLimit   string
	CallResult string
}

Response Types

type EthQueryTransactionRequest

type EthQueryTransactionRequest struct {
	TxHash string
}

type EthQueryTransactionResponse

type EthQueryTransactionResponse struct {
	BlockNumber string
	Tx          string
}

type PostTransactionRequest

type PostTransactionRequest struct {
	TxHex string
}

Request Types

type PostTransactionResponse

type PostTransactionResponse struct {
	TxHash string
}

Response Types

Jump to

Keyboard shortcuts

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