rpc

package
v1.67.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(name string, s types.RPCServer)

Init init grpc param

Types

type Grpc

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

Grpc grpc struct

func (Grpc) CreateCallTx added in v1.65.3

func (c Grpc) CreateCallTx(ctx context.Context, in evmtypes.EvmContractCallReq) (*types.UnsignTx, error)

func (Grpc) CreateDeployTx added in v1.65.3

func (c Grpc) CreateDeployTx(ctx context.Context, in evmtypes.EvmContractCreateReq) (*types.UnsignTx, error)

CreateEvmCallTx 创建未签名的部署合约交易

func (Grpc) CreateTransferOnlyTx added in v1.65.3

func (c Grpc) CreateTransferOnlyTx(ctx context.Context, in evmtypes.EvmTransferOnlyReq) (*types.UnsignTx, error)

type Jrpc

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

Jrpc json rpc struct

func (*Jrpc) CalcNewContractAddr added in v1.65.3

func (c *Jrpc) CalcNewContractAddr(parm *evm.EvmCalcNewContractAddrReq, result *interface{}) error

CalcNewContractAddr Evm部署合约的地址

func (*Jrpc) CreateCallTx added in v1.65.3

func (c *Jrpc) CreateCallTx(parm *evm.EvmContractCallReq, result *interface{}) error

CreateCallTx 创建调用EVM合约交易

func (*Jrpc) CreateDeployTx added in v1.65.3

func (c *Jrpc) CreateDeployTx(parm *evm.EvmContractCreateReq, result *interface{}) error

EvmCreateTx 创建Evm合约接口

func (*Jrpc) CreateTransferOnlyTx added in v1.65.3

func (c *Jrpc) CreateTransferOnlyTx(parm *evm.EvmTransferOnlyReq, result *interface{}) error

CreateTransferOnlyTx 创建只进行evm内部转账的交易

Jump to

Keyboard shortcuts

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