Documentation ¶
Index ¶
- type Greeter
- func (g *Greeter) CallSmartContract(ctx context.Context, in *message.ReqCallContract) (*message.ResCallContract, error)
- func (g *Greeter) GetAddressNonceAt(ctx context.Context, in *message.ReqNonce) (*message.ResposeNonce, error)
- func (g *Greeter) GetAllFreezeBalance(ctx context.Context, in *message.ReqBalance) (*message.ResBalance, error)
- func (g *Greeter) GetAvailableBalance(ctx context.Context, in *message.ReqGetAvailableBalance) (*message.ResGetAvailableBalance, error)
- func (g *Greeter) GetBalance(ctx context.Context, in *message.ReqBalance) (*message.ResBalance, error)
- func (g *Greeter) GetBlockByHash(ctx context.Context, in *message.ReqBlockByHash) (*message.RespBlockDate, error)
- func (g *Greeter) GetBlockByNum(ctx context.Context, in *message.ReqBlockByNumber) (*message.RespBlock, error)
- func (g *Greeter) GetCode(ctx context.Context, in *message.ReqEvmGetcode) (*message.ResEvmGetcode, error)
- func (g *Greeter) GetHasherPerSecond(ctx context.Context, req *message.ReqHasherPerSecond) (*message.ResHasherPerSecond, error)
- func (g *Greeter) GetLogs(ctx context.Context, in *message.ReqLogs) (*message.ResLogs, error)
- func (g *Greeter) GetMaxBlockHeight(ctx context.Context, in *message.ReqMaxBlockHeight) (*message.ResMaxBlockHeight, error)
- func (g *Greeter) GetSingleFreezeBalance(ctx context.Context, in *message.ReqSignBalance) (*message.ResBalance, error)
- func (g *Greeter) GetStorageAt(ctx context.Context, in *message.ReqGetstorage) (*message.ResGetstorage, error)
- func (g *Greeter) GetTxByHash(ctx context.Context, in *message.ReqTxByHash) (*message.RespTxByHash, error)
- func (g *Greeter) RunGrpc()
- func (g *Greeter) SendEthSignedRawTransaction(ctx context.Context, in *message.ReqEthSignTransaction) (*message.ResEthSignTransaction, error)
- func (g *Greeter) SendLockTransaction(ctx context.Context, in *message.ReqTransaction) (*message.ResTransaction, error)
- func (g *Greeter) SendTransaction(ctx context.Context, in *message.ReqTransaction) (*message.ResTransaction, error)
- func (g *Greeter) SendUnlockTransaction(ctx context.Context, in *message.ReqTransaction) (*message.ResTransaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Greeter ¶
type Greeter struct { Bc blockchain.Blockchains Tp *txpool.Pool Cfg *config.CfgInfo Node *p2p.Node Miner *miner.Miner NodeName string }
func NewGreeter ¶
func NewGreeter(bc blockchain.Blockchains, tp *txpool.Pool, cfg *config.CfgInfo) *Greeter
func (*Greeter) CallSmartContract ¶
func (g *Greeter) CallSmartContract(ctx context.Context, in *message.ReqCallContract) (*message.ResCallContract, error)
call contract
func (*Greeter) GetAddressNonceAt ¶
func (g *Greeter) GetAddressNonceAt(ctx context.Context, in *message.ReqNonce) (*message.ResposeNonce, error)
Get Address Nonce
func (*Greeter) GetAllFreezeBalance ¶
func (g *Greeter) GetAllFreezeBalance(ctx context.Context, in *message.ReqBalance) (*message.ResBalance, error)
Get All Freeze Balance
func (*Greeter) GetAvailableBalance ¶
func (g *Greeter) GetAvailableBalance(ctx context.Context, in *message.ReqGetAvailableBalance) (*message.ResGetAvailableBalance, error)
Get Available Balance
func (*Greeter) GetBalance ¶
func (g *Greeter) GetBalance(ctx context.Context, in *message.ReqBalance) (*message.ResBalance, error)
get balance
func (*Greeter) GetBlockByHash ¶
func (g *Greeter) GetBlockByHash(ctx context.Context, in *message.ReqBlockByHash) (*message.RespBlockDate, error)
Get Block By block Hash
func (*Greeter) GetBlockByNum ¶
func (g *Greeter) GetBlockByNum(ctx context.Context, in *message.ReqBlockByNumber) (*message.RespBlock, error)
Get Block By block Number
func (*Greeter) GetCode ¶
func (g *Greeter) GetCode(ctx context.Context, in *message.ReqEvmGetcode) (*message.ResEvmGetcode, error)
get code by contract address
func (*Greeter) GetHasherPerSecond ¶
func (g *Greeter) GetHasherPerSecond(ctx context.Context, req *message.ReqHasherPerSecond) (*message.ResHasherPerSecond, error)
Get Hasher Per Second
func (*Greeter) GetMaxBlockHeight ¶
func (g *Greeter) GetMaxBlockHeight(ctx context.Context, in *message.ReqMaxBlockHeight) (*message.ResMaxBlockHeight, error)
get max block height
func (*Greeter) GetSingleFreezeBalance ¶
func (g *Greeter) GetSingleFreezeBalance(ctx context.Context, in *message.ReqSignBalance) (*message.ResBalance, error)
Get Single Freeze Balance
func (*Greeter) GetStorageAt ¶
func (g *Greeter) GetStorageAt(ctx context.Context, in *message.ReqGetstorage) (*message.ResGetstorage, error)
get storage by hash
func (*Greeter) GetTxByHash ¶
func (g *Greeter) GetTxByHash(ctx context.Context, in *message.ReqTxByHash) (*message.RespTxByHash, error)
Get transaction By Hash
func (*Greeter) SendEthSignedRawTransaction ¶
func (g *Greeter) SendEthSignedRawTransaction(ctx context.Context, in *message.ReqEthSignTransaction) (*message.ResEthSignTransaction, error)
send eth signed transaction
func (*Greeter) SendLockTransaction ¶
func (g *Greeter) SendLockTransaction(ctx context.Context, in *message.ReqTransaction) (*message.ResTransaction, error)
send Lock transaction to chain
func (*Greeter) SendTransaction ¶
func (g *Greeter) SendTransaction(ctx context.Context, in *message.ReqTransaction) (*message.ResTransaction, error)
send transaction to chain
func (*Greeter) SendUnlockTransaction ¶
func (g *Greeter) SendUnlockTransaction(ctx context.Context, in *message.ReqTransaction) (*message.ResTransaction, error)
send Unlock transaction to chain
Click to show internal directories.
Click to hide internal directories.