spclient

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package spclient provides a client for communication with Filecoin SP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SPClient

type SPClient struct {
	// contains filtered or unexported fields
}

SPClient is a struct that represents SPClient.

func New

func New() *SPClient

New creates a new SPClient.

func (*SPClient) Close

func (f *SPClient) Close()

Close closes the client.

func (*SPClient) FetchBlock

func (f *SPClient) FetchBlock(ctx context.Context, spBaseURL string, cid cid.Cid) (blocks.Block, error)

FetchBlock fetches the block from the filecoin provider.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL