Examples
Examples are available in the examples/ directory:
api/handler/add_eph_key.goapi/handler/keygen.goapi/handler/revoke_eph_key.goapi/handler/sign.goapi/handler/ws_handler.goapi/main.goapi/service/add_eph_key.goapi/service/app_state.goapi/service/interface.goapi/service/keygen.goapi/service/revoke_eph_key.goapi/service/sign.goapi/wp_client/wp_client_conn.gocmd/main.go
Basic Usage Example
package main
import (
"log"
sdk "github.com/silence-laboratories/wallet-provider-go-sdk"
)
func main() {
// Get SDK version
version := sdk.GetVersion()
log.Printf("Using SDK version: %s", version)
// Setup client configuration
config := &sdk.NetworkClientConfig{
APIKey: "your-api-key",
// Add your network nodes here
}
// Create client
client, err := sdk.NewNetworkClient(config)
if err != nil {
log.Fatal("Failed to create client:", err)
}
// Use client for operations...
}