Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Standard ports for the sonr grpc and rpc api endpoints. SonrGrpcPort = "0.0.0.0:9090" SonrRpcPort = "0.0.0.0:26657" // CurrentChainID is the current chain ID. CurrentChainID = "sonrdevnet-1" )
Variables ¶
This section is empty.
Functions ¶
func GrpcEndpoint ¶ added in v0.7.0
func GrpcEndpoint() string
func RpcEndpoint ¶ added in v0.7.0
func RpcEndpoint() string
func ValidatorAddress ¶ added in v0.6.20
Types ¶
type BroadcastTxResponse ¶ added in v0.6.6
type BroadcastTxResponse = txtypes.BroadcastTxResponse
type LocalContext ¶ added in v0.6.6
type LocalContext struct { HomeDir string NodeHome string IPFSRepoPath string OrbitDBPath string ConfigDirPath string ConfigTomlPath string Rendevouz string BsMultiaddrs []string // contains filtered or unexported fields }
LocalContext is a struct that holds the current context of the application.
func Context ¶
func Context(opts ...Option) LocalContext
Context returns the current context of the Sonr blockchain application.
func (LocalContext) BroadcastTx ¶ added in v0.6.6
func (c LocalContext) BroadcastTx(txRawBytes []byte) (*BroadcastTxResponse, error)
BroadcastTx broadcasts a transaction on the Sonr blockchain network
func (LocalContext) SimulateTx ¶ added in v0.6.6
func (c LocalContext) SimulateTx(txRawBytes []byte) (*txtypes.SimulateResponse, error)
SimulateTx simulates a transaction on the Sonr blockchain network
type Option ¶ added in v0.6.7
type Option func(LocalContext)
Option is a function that configures the local context
Click to show internal directories.
Click to hide internal directories.