14 lines
295 B
Go
14 lines
295 B
Go
package rpc
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type GetSnapshotSlotResult struct{}
|
|
|
|
// GetSnapshotSlot returns the highest slot that the node has a snapshot for.
|
|
func (cl *Client) GetSnapshotSlot(ctx context.Context) (out uint64, err error) {
|
|
err = cl.rpcClient.CallFor(&out, "getSnapshotSlot")
|
|
return
|
|
}
|