23 lines
317 B
Go
23 lines
317 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/davecgh/go-spew/spew"
|
|
"github.com/gagliardetto/solana-go/rpc"
|
|
)
|
|
|
|
func main() {
|
|
endpoint := rpc.TestNet_RPC
|
|
client := rpc.New(endpoint)
|
|
|
|
out, err := client.GetSupply(
|
|
context.TODO(),
|
|
rpc.CommitmentFinalized,
|
|
)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
spew.Dump(out)
|
|
}
|