models

package
v0.0.0-...-938c068 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 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,omitempty"`
	Balance string `json:"balance,omitempty"`
	Symbol  string `json:"symbol,omitempty"`
	Units   string `json:"units,omitempty"`
}

type Block

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

type Error

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

type HashResponse

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

type Transaction

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

type TransferEthRequest

type TransferEthRequest struct {
	PrivKey string `json:"privKey,omitempty"`
	To      string `json:"to,omitempty"`
	Amount  int64  `json:"amount,omitempty"`
}

Jump to

Keyboard shortcuts

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