rpc: adjust client documentation
This commit is contained in:
parent
913e3878c5
commit
df8141ff7d
4 changed files with 25 additions and 9 deletions
|
@ -110,9 +110,10 @@ func New(ctx context.Context, endpoint string, opts Options) (*Client, error) {
|
|||
return cl, nil
|
||||
}
|
||||
|
||||
// Init sets magic of the network client connected to and native NEO and GAS
|
||||
// contracts scripthashes. This method should be called before any transaction-,
|
||||
// header- or block-related requests in order to deserialize responses properly.
|
||||
// Init sets magic of the network client connected to, stateRootInHeader option
|
||||
// and native NEO, GAS and Policy contracts scripthashes. This method should be
|
||||
// called before any transaction-, header- or block-related requests in order to
|
||||
// deserialize responses properly.
|
||||
func (c *Client) Init() error {
|
||||
version, err := c.GetVersion()
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue