Documentation ¶
Index ¶
- type Client
- func (c *Client) AddChain(kind policycontract.Kind, entity string, name []byte, chain []byte) (util.Uint256, uint32, error)
- func (c *Client) GetChain(kind policycontract.Kind, entity string, name []byte) ([]byte, error)
- func (c *Client) ListChains(kind policycontract.Kind, entity string, name []byte) ([][]byte, error)
- func (c *Client) RemoveChain(kind policycontract.Kind, entity string, name []byte) (util.Uint256, uint32, error)
- func (c *Client) SendTx(mtx policy.MultiTransaction) error
- func (c *Client) StartTx() policy.MultiTransaction
- func (c *Client) Wait(tx util.Uint256, vub uint32, err error) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListChains ¶
func (*Client) RemoveChain ¶
func (*Client) StartTx ¶
func (c *Client) StartTx() policy.MultiTransaction
type Config ¶
type Config struct { // RPCAddress is an endpoint to connect to neo rpc. RPCAddress string // Contract is hash of contract or its name in NNS. Contract string // ProxyContract is hash of proxy contract or its name in NNS to interact with policy. ProxyContract string // Key is used to interact with policy contract. // If this is nil than random key will be generated. Key *keys.PrivateKey }
Click to show internal directories.
Click to hide internal directories.