Documentation
¶
Overview ¶
Class to interact with the underlying blockchain to operate on the highway
Index ¶
- Constants
- func CheckAlias(alias string) (bool, error)
- func GetDID(alias string) (*identitytypes.DIDDocument, error)
- func GetHomeDir() string
- func GetServiceRecord(origin string) (*servicetypes.ServiceRecord, error)
- func GetUnclaimedWallet(id uint64) (*vaulttypes.ClaimableWallet, error)
- func GrpcEndpoint() string
- func NextUnclaimedWallet() (*vaulttypes.ClaimableWallet, error)
- func RpcEndpoint() string
- func ValidatorAddress() (string, bool)
- type ClaimableWallet
- type QueryAllClaimableWalletResponse
- type QueryGetClaimableWalletResponse
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" // ChallengeLength - Length of bytes to generate for a challenge ChallengeLength = 32 )
Variables ¶
This section is empty.
Functions ¶
func CheckAlias ¶
CheckAlias checks if an alias is already registered
func GetDID ¶
func GetDID(alias string) (*identitytypes.DIDDocument, error)
GetDID returns the DIDDocument of a given DID or Alias
func GetHomeDir ¶
func GetHomeDir() string
func GetServiceRecord ¶
func GetServiceRecord(origin string) (*servicetypes.ServiceRecord, error)
GetServiceRecord returns the ServiceRecord of a given origin
func GetUnclaimedWallet ¶
func GetUnclaimedWallet(id uint64) (*vaulttypes.ClaimableWallet, error)
GetUnclaimedWallet returns the UnclaimedWallet of a given id
func GrpcEndpoint ¶
func GrpcEndpoint() string
func NextUnclaimedWallet ¶
func NextUnclaimedWallet() (*vaulttypes.ClaimableWallet, error)
NextUnclaimedWallet returns the next UnclaimedWallet from the queue
func RpcEndpoint ¶
func RpcEndpoint() string
func ValidatorAddress ¶
Types ¶
type ClaimableWallet ¶
type QueryAllClaimableWalletResponse ¶
type QueryAllClaimableWalletResponse struct {
ClaimableWallet []ClaimableWallet `protobuf:"bytes,1,rep,name=ClaimableWallet,proto3" json:"ClaimableWallet"`
}
type QueryGetClaimableWalletResponse ¶
type QueryGetClaimableWalletResponse struct {
ClaimableWallet ClaimableWallet `protobuf:"bytes,1,opt,name=ClaimableWallet,proto3" json:"ClaimableWallet"`
}
Click to show internal directories.
Click to hide internal directories.