Documentation ¶
Index ¶
- type SCClient
- func (c *SCClient) CallView(functionName string, args dict.Dict, optimisticReadTimeout ...time.Duration) (dict.Dict, error)
- func (c *SCClient) PostNRequests(fname string, n int, params ...chainclient.PostRequestParams) ([]*iotago.Transaction, error)
- func (c *SCClient) PostOffLedgerRequest(fname string, params ...chainclient.PostRequestParams) (isc.OffLedgerRequest, error)
- func (c *SCClient) PostRequest(fname string, params ...chainclient.PostRequestParams) (*iotago.Transaction, error)
- func (c *SCClient) StateGet(key string) ([]byte, error)
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 isc.Hname }
SCClient allows to send webapi requests targeted to a specific contract
func New ¶
func New( chainClient *chainclient.Client, contractHname isc.Hname, ) *SCClient
New creates a new SCClient
func (*SCClient) PostNRequests ¶ added in v0.3.0
func (c *SCClient) PostNRequests(fname string, n int, params ...chainclient.PostRequestParams) ([]*iotago.Transaction, error)
func (*SCClient) PostOffLedgerRequest ¶ added in v0.2.0
func (c *SCClient) PostOffLedgerRequest(fname string, params ...chainclient.PostRequestParams) (isc.OffLedgerRequest, error)
func (*SCClient) PostRequest ¶
func (c *SCClient) PostRequest(fname string, params ...chainclient.PostRequestParams) (*iotago.Transaction, error)
Click to show internal directories.
Click to hide internal directories.