Documentation ¶
Index ¶
- func CreateHashCidLink(hash []byte) cidlink.Link
- func GetLinkPrototype() ipld.LinkPrototype
- type GraphsyncAPIHandler
- func (e *GraphsyncAPIHandler) ClientCtx() client.Context
- func (e *GraphsyncAPIHandler) GetTransactionByHash(hash string) (*sdk.TxResponse, error)
- func (e *GraphsyncAPIHandler) QueryClient() *rpctypes.QueryClient
- func (e *GraphsyncAPIHandler) SendRawTransaction(data hexutil.Bytes) (*sdk.TxResponse, error)
- func (e *GraphsyncAPIHandler) VerifyMembership(root, key, value, exproof hexutil.Bytes) (*sdk.ABCIMessageLogs, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHashCidLink ¶
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
Click to show internal directories.
Click to hide internal directories.