models

package
v0.0.0-...-0460f07 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceResponse

type BalanceResponse struct {
	Address string `json:"address"`
	Balance string `json:"balance"`
	Symbol  string `json:"symbol"`
	Units   string `json:"units"`
}

BalanceResponse data struct

type Block

type Block struct {
	BlockNumber       int64         `json:"block_number"`
	Timestamp         uint64        `json:"timestamp"`
	Difficulty        uint64        `json:"difficulty"`
	Hash              string        `json:"hash"`
	TransactionsCount int           `json:"transactions_count"`
	Transactions      []Transaction `json:"transactions"`
}

Block data structure

type Error

type Error struct {
	Code    uint64 `json:"code"`
	Message string `json:"message"`
}

Error data struct

type HashResponse

type HashResponse struct {
	Hash string `json:"hash"`
}

HashResponse data structure

type Transaction

type Transaction struct {
	Hash     string `json:"hash"`
	Value    string `json:"value"`
	Gas      uint64 `json:"gas"`
	GasPrice uint64 `json:"gas_price"`
	Nonce    uint64 `json:"nonce"`
	To       string `json:"to"`
	Pending  bool   `json:"pending"`
}

Transaction data structure

type TransferEtheRequest

type TransferEtheRequest struct {
	PrivKey string `json:"priv_key"`
	To      string `json:"to"`
	Amount  int64  `json:"amount"`
}

TransferEthRequest data structure

Jump to

Keyboard shortcuts

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