Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Teyz/go-alchemy-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Teyz committed Jan 8, 2025
2 parents 0ee8076 + 73db630 commit 96af1c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ func main() {
log.Fatalf("Failed to create client: %v", err)
}

// Example: Get the latest block number
blockNumber, err := client.GetBlockNumber()
// Example: Get the balance
balance, err := client.GetBalance("your-solana-address")
if err != nil {
log.Fatalf("Failed to get block number: %v", err)
log.Fatalf("Failed to get balance: %v", err)
}

fmt.Printf("Latest Block Number: %d\n", blockNumber)
fmt.Printf("Balance: %v\n", balance)
}
```

Expand Down

0 comments on commit 96af1c4

Please sign in to comment.