controllers

package
v0.0.0-...-d2fdb59 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

*

  • Created by Adwind.
  • User: liuyunlong
  • Date: 11/13/18
  • Time: 17:32

*

  • Created by Adwind.
  • User: liuyunlong
  • Date: 11/15/18
  • Time: 11:16

*

  • Created by Adwind.
  • User: liuyunlong
  • Date: 11/13/18
  • Time: 18:20

*

  • Created by Adwind.
  • User: liuyunlong
  • Date: 11/14/18
  • Time: 18:13

*

  • Created by Adwind.
  • User: liuyunlong
  • Date: 11/13/18
  • Time: 11:58

Index

Constants

View Source
const Mfasle = "失败"
View Source
const Mtrue = "成功"

Variables

This section is empty.

Functions

This section is empty.

Types

type BitController

type BitController struct {
	// contains filtered or unexported fields
}

func (*BitController) Err

func (e *BitController) Err(m string, d interface{})

func (*BitController) GetAccountAddress

func (b *BitController) GetAccountAddress()

获取账户接受地址

func (*BitController) GetAddressesByAccount

func (b *BitController) GetAddressesByAccount()

获取账户子地址

func (*BitController) GetBestBlockHash

func (b *BitController) GetBestBlockHash()

获取最新区块hash

func (*BitController) GetBlockByHash

func (b *BitController) GetBlockByHash()

获取区块的信息

func (*BitController) GetBlockByHeight

func (b *BitController) GetBlockByHeight()

通过区块号获取block信息

func (*BitController) ListAccounts

func (b *BitController) ListAccounts()

获取所有账户

func (*BitController) Prepare

func (e *BitController) Prepare()

func (*BitController) SendToAddress

func (b *BitController) SendToAddress()

转账给某个账户

func (*BitController) Success

func (e *BitController) Success(m string, d interface{})

func (*BitController) WalletPassphrase

func (b *BitController) WalletPassphrase()

解锁账户

type EthController

type EthController struct {
	// contains filtered or unexported fields
}

func (*EthController) Blocknumber

func (e *EthController) Blocknumber()

获取区块儿号

func (*EthController) Coinbase

func (e *EthController) Coinbase()

func (*EthController) Contract

func (e *EthController) Contract()

Todo

func (*EthController) Err

func (e *EthController) Err(m string, d interface{})

func (*EthController) EstimateGas

func (e *EthController) EstimateGas()

Todo

func (*EthController) GetBalance

func (e *EthController) GetBalance()

获取单个地址余额

func (*EthController) GetBlockByHash

func (e *EthController) GetBlockByHash()

通过hash获取block

func (*EthController) GetBlockByNumber

func (e *EthController) GetBlockByNumber()

通过区块号获取block

func (*EthController) GetBlockTransactionCountByHash

func (e *EthController) GetBlockTransactionCountByHash()

通过blockhash获取块里的交易hash数量

func (*EthController) GetBlockTransactionCountByNumber

func (e *EthController) GetBlockTransactionCountByNumber()

通过blocknumber 获取块儿里的交易数量

func (*EthController) GetCode

func (e *EthController) GetCode()

获取getcode

func (*EthController) GetGasPrice

func (e *EthController) GetGasPrice()

func (*EthController) GetHashRate

func (e *EthController) GetHashRate()

getHashRate

func (*EthController) GetProtocolVersion

func (e *EthController) GetProtocolVersion()

获取节点版本

func (*EthController) GetTransactionByBlockHashAndIndex

func (e *EthController) GetTransactionByBlockHashAndIndex()

func (*EthController) GetTransactionByBlockNumberAndIndex

func (e *EthController) GetTransactionByBlockNumberAndIndex()

func (*EthController) GetTransactionByHash

func (e *EthController) GetTransactionByHash()

func (*EthController) GetTransactionCount

func (e *EthController) GetTransactionCount()

获取nonce

func (*EthController) GetTransactionReceipt

func (e *EthController) GetTransactionReceipt()

获取交易收据

func (*EthController) GetUncleCountByBlockHash

func (e *EthController) GetUncleCountByBlockHash()

getUncleCount

func (*EthController) GetUncleCountByBlockNumber

func (e *EthController) GetUncleCountByBlockNumber()

getUncleCount

func (*EthController) GetsBalance

func (e *EthController) GetsBalance()

获取所有余额

func (*EthController) IsMining

func (e *EthController) IsMining()

节点是否在挖矿

func (*EthController) IsSyncing

func (e *EthController) IsSyncing()

func (*EthController) Prepare

func (e *EthController) Prepare()

func (*EthController) SendTransaction

func (e *EthController) SendTransaction()

func (*EthController) SignTransaction

func (e *EthController) SignTransaction()

func (*EthController) Success

func (e *EthController) Success(m string, d interface{})

type MainController

type MainController struct {
	beego.Controller
}

func (*MainController) Get

func (c *MainController) Get()

type NetController

type NetController struct {
	// contains filtered or unexported fields
}

func (*NetController) ClientVersion

func (e *NetController) ClientVersion()

获取客户端版本

func (*NetController) Err

func (e *NetController) Err(m string, d interface{})

func (*NetController) GetPeerCount

func (n *NetController) GetPeerCount()

获取节点数量

func (*NetController) GetVersion

func (e *NetController) GetVersion()

net版本

func (*NetController) IsListening

func (e *NetController) IsListening()

是否监听

func (*NetController) Prepare

func (e *NetController) Prepare()

func (*NetController) Sha3

func (e *NetController) Sha3()

sha3

func (*NetController) Success

func (e *NetController) Success(m string, d interface{})

type PersonalController

type PersonalController struct {
	// contains filtered or unexported fields
}

func (*PersonalController) CreateAccount

func (e *PersonalController) CreateAccount()

创建钱包地址

func (*PersonalController) Err

func (e *PersonalController) Err(m string, d interface{})

func (*PersonalController) ListAccounts

func (e *PersonalController) ListAccounts()

列出节点账户地址

func (*PersonalController) Prepare

func (e *PersonalController) Prepare()

func (*PersonalController) SendTransaction

func (e *PersonalController) SendTransaction()

发起交易

func (*PersonalController) Success

func (e *PersonalController) Success(m string, d interface{})

func (*PersonalController) UnlockAccount

func (e *PersonalController) UnlockAccount()

解锁钱包地址

Jump to

Keyboard shortcuts

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