scclient

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0, BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SCClient

type SCClient struct {
	ChainClient   *chainclient.Client
	ContractHname coretypes.Hname
}

SCClient allows to send webapi requests targeted to a specific contract

func New

func New(
	chainClient *chainclient.Client,
	contractHname coretypes.Hname,
) *SCClient

New creates a new SCClient

func (*SCClient) CallView

func (c *SCClient) CallView(fname string, args dict.Dict) (dict.Dict, error)

func (*SCClient) PostRequest

func (c *SCClient) PostRequest(fname string, params ...chainclient.PostRequestParams) (*sctransaction.Transaction, error)

Jump to

Keyboard shortcuts

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