DID

Login

func Login(endpoint, address string, privateKey *ecdsa.PrivateKey) (accessToken, userID string, err error)

Parameters:

NameTypeDescriptionRequired

endpoint

string

node server endpoint

true

address

string

wallet account address

true

privateKey

*ecdsa.PrivateKey

wallet account private key

true

Returns:

NameTypeDescriptionRequired

accessToken

string

access token for the client

true

userId

string

user id for the client

true

err

error

error message

true

Last updated