graphsync

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHashCidLink(hash []byte) cidlink.Link

MOVE to utils CreateHashCidLink takes a hash eg ethereum hash and converts it to cid multihash

func GetLinkPrototype

func GetLinkPrototype() ipld.LinkPrototype

Types

type GraphsyncAPIHandler

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

GraphsyncAPIHandler is the graphsync_ prefixed set of APIs

func NewAPIHandler

func NewAPIHandler(
	ctx *server.Context,
	logger log.Logger,
	clientCtx client.Context,
	backend backend.Backend,

) *GraphsyncAPIHandler

NewAPI creates an instance of the public GraphsyncAPIHandler.

func (*GraphsyncAPIHandler) ClientCtx

func (e *GraphsyncAPIHandler) ClientCtx() client.Context

ClientCtx returns client context

func (*GraphsyncAPIHandler) GetTransactionByHash

func (e *GraphsyncAPIHandler) GetTransactionByHash(hash string) (*sdk.TxResponse, error)

GetTransactionByHash

func (*GraphsyncAPIHandler) QueryClient

func (e *GraphsyncAPIHandler) QueryClient() *rpctypes.QueryClient

func (*GraphsyncAPIHandler) SendRawTransaction

func (e *GraphsyncAPIHandler) SendRawTransaction(data hexutil.Bytes) (*sdk.TxResponse, error)

SendSignTx

func (*GraphsyncAPIHandler) VerifyMembership

func (e *GraphsyncAPIHandler) VerifyMembership(root, key, value, exproof hexutil.Bytes) (*sdk.ABCIMessageLogs, error)

VerifyMembership

Jump to

Keyboard shortcuts

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