grpcs

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	GRPC *client.GrpcClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(node string) (*Client, error)

func (*Client) BroadcastTransaction

func (c *Client) BroadcastTransaction(transaction *core.Transaction) error

func (*Client) GetTrc10Balance

func (c *Client) GetTrc10Balance(addr, assetId string) (int64, error)

func (*Client) GetTrc20Balance

func (c *Client) GetTrc20Balance(addr, contractAddress string) (*big.Int, error)

func (*Client) GetTrxBalance

func (c *Client) GetTrxBalance(addr string) (*core.Account, error)

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration) error

func (*Client) Transfer

func (c *Client) Transfer(from, to string, amount int64) (*api.TransactionExtention, error)

func (*Client) TransferTrc10

func (c *Client) TransferTrc10(from, to, assetId string, amount int64) (*api.TransactionExtention, error)

func (*Client) TransferTrc20

func (c *Client) TransferTrc20(from, to, contract string, amount *big.Int, feeLimit int64) (*api.TransactionExtention, error)

Jump to

Keyboard shortcuts

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