package
0.108.1
Repository: https://github.com/nspcc-dev/neo-go.git
Documentation: pkg.go.dev

# Functions

GetAccFromContext returns account and wallet from context.
GetConfigFromContext looks at the path and the mode flags in the given config and returns an appropriate config.
GetInvoker returns an invoker using the given RPC client, context and signers.
GetNetwork examines Context's flags and returns the appropriate network.
GetRPCClient returns an RPC client instance for the given Context.
GetRPCWithActor returns an RPC client instance and Actor instance for the given context.
GetRPCWithInvoker combines GetRPCClient with GetInvoker for cases where it's appropriate to do so.
GetTimeoutContext returns a context.Context with the default or a user-set timeout.
GetUnlockedAccount returns account from wallet, address and uses pass to unlock specified account if given.
HandleLoggingParams reads logging parameters.
NewFilteringCore returns a core middleware that uses the given filter function to decide whether to log this message or not.
ReadWalletConfig reads wallet config from the given path.

# Constants

DefaultAwaitableTimeout is the default timeout used for RPC requests that require transaction awaiting.
DefaultTimeout is the default timeout used for RPC requests.
RPCEndpointFlag is a long flag name for an RPC endpoint.

# Variables

Config is a flag for commands that use node configuration.
ConfigFile is a flag for commands that use node configuration and provide path to the specific config file instead of config path.
Debug is a flag for commands that allow node in debug mode usage.
Historic is a flag for commands that can perform historic invocations.
Network is a set of flags for choosing the network to operate on (privnet/mainnet/testnet).
RelativePath is a flag for commands that use node configuration and provide a prefix to all relative paths in config files.
RPC is a set of flags used for RPC connections (endpoint and timeout).
Wallet is a set of flags used for wallet operations.

# Structs

FilteringCore is custom implementation of zapcore.Core that allows to filter log entries using custom filtering function.

# Type aliases

FilterFunc is the filter function that is called to check whether the given entry together with the associated fields is to be written to a core or not.