Getting Started
Quick Start (5 minutes)
1. Create a New Project
bashmkdir my-prediction-app
cd my-prediction-app
go mod init my-prediction-app2. Install GoPredix SDK
bashgo get github.com/ayush78490/Go-Predix/gopredix-sdk3. Import and Initialize
gopackage main
import (
"context"
"log"
"github.com/ayush78490/Go-Predix/gopredix-sdk"
)
func main() {
// Initialize client with RPC endpoint
client, err := gopredix.NewClient("https://your-rpc-endpoint.com")
if err != nil {
log.Fatal(err)
}
defer client.Close()
// Use the client
ctx := context.Background()
// ... your code here
}4. Run Your Application
Last updated