dal

package
v0.0.0-...-24865f3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

func New

func New(baseUrl string) *Node

func (*Node) Blob

func (node *Node) Blob(ctx context.Context, height pkgTypes.Level, namespace, commitment string) (types.Blob, error)

Blob - retrieves the blob by commitment under the given namespace and height.

func (*Node) Blobs

func (node *Node) Blobs(ctx context.Context, height pkgTypes.Level, namespaces ...string) ([]types.Blob, error)

Blobs - returns all blobs under the given namespaces and height.

func (*Node) Proofs

func (node *Node) Proofs(ctx context.Context, height pkgTypes.Level, namespace, commitment string) ([]types.Proof, error)

Proofs - retrieves proofs in the given namespaces at the given height by commitment.

func (*Node) WithAuthToken

func (node *Node) WithAuthToken(token string) *Node

func (*Node) WithJsonRpcVersion

func (node *Node) WithJsonRpcVersion(version string) *Node

func (*Node) WithRateLimit

func (node *Node) WithRateLimit(requestPerSecond int) *Node

func (*Node) WithStartId

func (node *Node) WithStartId(id int64) *Node

Jump to

Keyboard shortcuts

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