Documentation ¶
Index ¶
- type Backend
- type Block
- type Key
- type KeyVal
- type Object
- type Options
- type PReceipt
- type Peer
- type Receipt
- type State
- type Transaction
- type Whisper
- func (self *Whisper) HasIdentity(key string) bool
- func (self *Whisper) Messages(id int) (messages []WhisperMessage)
- func (self *Whisper) NewIdentity() string
- func (self *Whisper) Post(payload string, to, from string, topics []string, priority, ttl uint32) error
- func (self *Whisper) Watch(opts *Options) int
- type WhisperMessage
- type XEth
- func (self *XEth) Accounts() []string
- func (self *XEth) Backend() Backend
- func (self *XEth) BalanceAt(addr string) string
- func (self *XEth) Block(v interface{}) *Block
- func (self *XEth) BlockByHash(strHash string) *Block
- func (self *XEth) BlockByNumber(num int32) *Block
- func (self *XEth) Call(toStr, valueStr, gasStr, gasPriceStr, dataStr string) (string, error)
- func (self *XEth) CodeAt(address string) string
- func (self *XEth) Coinbase() string
- func (self *XEth) EachStorage(addr string) string
- func (self *XEth) Execute(addr, value, gas, price, data string) (string, error)
- func (self *XEth) FromAscii(str string) string
- func (self *XEth) FromNumber(str string) string
- func (self *XEth) IsContract(address string) bool
- func (self *XEth) IsListening() bool
- func (self *XEth) IsMining() bool
- func (self *XEth) Miner() *miner.Miner
- func (self *XEth) NumberToHuman(balance string) string
- func (self *XEth) PeerCount() int
- func (self *XEth) PushTx(encodedTx string) (string, error)
- func (self *XEth) SecretToAddress(key string) string
- func (self *XEth) SetMining(shouldmine bool) bool
- func (self *XEth) State() *State
- func (self *XEth) StorageAt(addr, storageAddr string) string
- func (self *XEth) ToAscii(str string) string
- func (self *XEth) Transact(toStr, valueStr, gasStr, gasPriceStr, codeStr string) (string, error)
- func (self *XEth) TxCountAt(address string) int
- func (self *XEth) UseState(statedb *state.StateDB) *XEth
- func (self *XEth) Whisper() *Whisper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { BlockProcessor() *core.BlockProcessor ChainManager() *core.ChainManager TxPool() *core.TxPool PeerCount() int IsListening() bool Peers() []*p2p.Peer KeyManager() *crypto.KeyManager Db() ethutil.Database EventMux() *event.TypeMux Whisper() *whisper.Whisper Miner() *miner.Miner }
to resolve the import cycle
type Block ¶
type Block struct { Size string `json:"size"` Number int `json:"number"` Hash string `json:"hash"` Transactions *ethutil.List `json:"transactions"` Uncles *ethutil.List `json:"uncles"` Time int64 `json:"time"` Coinbase string `json:"coinbase"` Name string `json:"name"` GasLimit string `json:"gasLimit"` GasUsed string `json:"gasUsed"` PrevHash string `json:"prevHash"` Bloom string `json:"bloom"` Raw string `json:"raw"` // contains filtered or unexported fields }
Block interface exposed to QML
func (*Block) GetTransaction ¶
func (self *Block) GetTransaction(hash string) *Transaction
type Key ¶
type Object ¶
type Object struct {
*state.StateObject
}
func NewObject ¶
func NewObject(state *state.StateObject) *Object
type Options ¶
type Options struct { To string From string Topics []string Fn func(msg WhisperMessage) }
type PReceipt ¶
type PReceipt struct { CreatedContract bool `json:"createdContract"` Address string `json:"address"` Hash string `json:"hash"` Sender string `json:"sender"` }
func NewPReciept ¶
type Peer ¶
type Receipt ¶
type Receipt struct { CreatedContract bool `json:"createdContract"` Address string `json:"address"` Hash string `json:"hash"` Sender string `json:"sender"` }
func NewReciept ¶
type Transaction ¶
type Transaction struct { Value string `json:"value"` Gas string `json:"gas"` GasPrice string `json:"gasPrice"` Hash string `json:"hash"` Address string `json:"address"` Sender string `json:"sender"` RawData string `json:"rawData"` Data string `json:"data"` Contract bool `json:"isContract"` CreatesContract bool `json:"createsContract"` Confirmations int `json:"confirmations"` // contains filtered or unexported fields }
func NewTx ¶
func NewTx(tx *types.Transaction) *Transaction
func (*Transaction) ToString ¶
func (self *Transaction) ToString() string
type Whisper ¶
func NewWhisper ¶
func (*Whisper) HasIdentity ¶
func (*Whisper) Messages ¶
func (self *Whisper) Messages(id int) (messages []WhisperMessage)
func (*Whisper) NewIdentity ¶
type WhisperMessage ¶
type WhisperMessage struct { Payload string `json:"payload"` To string `json:"to"` From string `json:"from"` Sent int64 `json:"sent"` // contains filtered or unexported fields }
func NewWhisperMessage ¶
func NewWhisperMessage(msg *whisper.Message) WhisperMessage
type XEth ¶
type XEth struct {
// contains filtered or unexported fields
}
func (*XEth) BlockByHash ¶
func (*XEth) BlockByNumber ¶
func (*XEth) EachStorage ¶
func (*XEth) FromNumber ¶
func (*XEth) IsContract ¶
func (*XEth) IsListening ¶
func (*XEth) NumberToHuman ¶
func (*XEth) SecretToAddress ¶
Click to show internal directories.
Click to hide internal directories.