blocktransaction

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 3 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type BitcoinTransaction

type BitcoinTransaction struct {
	BitcoinTransactionBlockHash   string `json:"bitcoinTransactionBlockHash"`
	BitcoinTransactionBlockHeight int64  `json:"bitcoinTransactionBlockHeight"`

	BitcoinTransactionTxId          string                 `json:"bitcoinTransactionTxId"`
	BitcoinTransactionHash          string                 `json:"bitcoinTransactionHash"`
	BitcoinTransactionVersion       int64                  `json:"bitcoinTransactionVersion"`
	BitcoinTransactionSize          int64                  `json:"bitcoinTransactionSize"`
	BitcoinTransactionVSize         int64                  `json:"bitcoinTransactionVSize"`
	BitcoinTransactionLocktime      int64                  `json:"bitcoinTransactionLocktime"`
	BitcoinTransactionHex           string                 `json:"bitcoinTransactionHex"`
	BitcoinTransactionConfirmations int64                  `json:"bitcoinTransactionConfirmations"`
	BitcoinTransactionTime          int64                  `json:"bitcoinTransactionTime"`
	BitcoinTransactionBlockTime     int64                  `json:"bitcoinTransactionBlockTime"`
	BitcoinTransactionType          BitcoinTransactionType `json:"bitcoinTransactionType"`
	BitcoinTransactionUsed          bool                   `json:"bitcoinTransactionUsed"`
}

Datastructure for Bitcoin Transaction

type BitcoinTransactionReceipt

type BitcoinTransactionReceipt struct {
}

Datastructure for Bitcoin Transaction Receipt

type BitcoinVIn

type BitcoinVIn struct {
	BitcoinTransactionVInTransactionTxId  string `json:"bitcoinTransactionVInTransactionTxId"`
	BitcoinTransactionVInTransactionIndex int64  `json:"bitcoinTransactionVInTransactionIndex"`
	BitcoinTransactionVInIndex            int64  `json:"bitcoinTransactionVInIndex"`
	BitcoinTransactionVInValue            int64  `json:"bitcoinTransactionVInValue"`
}

type BitcoinVOut

type BitcoinVOut struct {
	BitcoinTransactionVOutIndex int64 `json:"bitcoinTransactionVOutIndex"`
	BitcoinTransactionVOutValue int64 `json:"bitcoinTransactionVOutValue"`
}

type BlockTransaction

type BlockTransaction struct {
	mixin.Model

	Address string `json:"address"`

	BitcoinTransaction
	BitcoinVIn
	BitcoinVOut
	EthereumTransaction
	EthereumTransactionReceipt

	Type          Type          `json:"type"`
	Status        ProcessStatus `json:"status"`
	Usage         Usage         `json:"usage"`
	Confirmations int64         `json:"confirmations"`
}

Datastructure combining all the different types of transactions

func New

func (*BlockTransaction) Defaults

func (b *BlockTransaction) Defaults()

func (*BlockTransaction) Init

func (b *BlockTransaction) Init(db *datastore.Datastore)

func (BlockTransaction) Kind

func (b BlockTransaction) Kind() string

type EthereumTransaction

type EthereumTransaction struct {
	EthereumTransactionBlockHash   string `json:"ethereumTransactionBlockHash"`
	EthereumTransactionBlockNumber int64  `json:"ethereumTransactionBlockNumber"`

	EthereumTransactionHash             string    `json:"ethereumTransactionHash"`
	EthereumTransactionNonce            int64     `json:"ethereumTransactionNonce"`
	EthereumTransactionTransactionIndex int64     `json:"ethereumTransactionTransactionIndex"`
	EthereumTransactionFrom             string    `json:"ethereumTransactionFrom"`
	EthereumTransactionTo               string    `json:"ethereumTransactionTo"`
	EthereumTransactionValue            BigNumber `json:"ethereumTransactionValue"`
	EthereumTransactionGasPrice         BigNumber `json:"ethereumTransactionGasPrice"`
	EthereumTransactionGas              BigNumber `json:"ethereumTransactionGas"`
	EthereumTransactionInput            string    `json:"ethereumTransactionInput"`
}

Datastructure for Ethereum Transaction

type EthereumTransactionReceipt

type EthereumTransactionReceipt struct {
	EthereumTransactionReceiptBlockHash         string `json:"ethereumTransactionReceiptBlockHash"`
	EthereumTransactionReceiptBlockNumber       int64  `json:"ethereumTransactionReceiptBlockNumber"`
	EthereumTransactionReceiptTransactionHash   string `json:"ethereumTransactionReceiptTransactionHash"`
	EthereumTransactionReceiptTransactionIndex  int64  `json:"ethereumTransactionReceiptTransactionIndex"`
	EthereumTransactionReceiptFrom              string `json:"ethereumTransactionReceiptFrom"`
	EthereumTransactionReceiptTo                string `json:"ethereumTransactionReceiptTo"`
	EthereumTransactionReceiptCumulativeGasUsed int64  `json:"ethereumTransactionReceiptCumulativeGasUsed"`
	EthereumTransactionReceiptGasUsed           int64  `json:"ethereumTransactionReceiptGasUsed"`
	EthereumTransactionReceiptContractAddress   string `json:"ethereumTransactionReceiptContractAddress"`
}

Datastructure for Ethereum Transaction Receipt

Jump to

Keyboard shortcuts

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