alhelper

package
v2.0.0-...-44ffc9c Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMarshal alerror.ALSDKError = *alerror.NewAlError("error marshalling transaction to json")
	ErrSign    alerror.ALSDKError = *alerror.NewAlError("error signing onboard transaction")
	ErrOnboard alerror.ALSDKError = *alerror.NewAlError("error onboarding transaction")
)

Functions

func Onboard

func Onboard(opts OnboardOpts) (Transaction alsdk.Transaction, err error)

func OnboardAndSend

func OnboardAndSend(opts OnboardOpts, c alsdk.Connection) (StreamID string, AlResponse alsdk.Response, err error)

func TestConnection

func TestConnection(protocol string, host string) (Success bool, Status int, Error error)

Types

type OnboardOpts

type OnboardOpts struct {
	Namespace string
	Contract  string
	Entry     string
	Key       alsdk.Key
	InputKey  string
}

Jump to

Keyboard shortcuts

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