DID
Login
func Login(endpoint, address string, privateKey *ecdsa.PrivateKey) (accessToken, userID string, err error)
Parameters:
Name
Type
Description
Required
endpoint
string
node server endpoint
true
address
string
wallet account address
true
privateKey
*ecdsa.PrivateKey
wallet account private key
true
Returns:
Name
Type
Description
Required
accessToken
string
access token for the client
true
userId
string
user id for the client
true
err
error
error message
true
Last updated