nftkeyme

package
v0.0.0-...-44f1c0e Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	PolicyId        string                 `json:"policy_id"`
	AssetName       string                 `json:"asset_name"`
	Quantity        string                 `json:"quantity"`
	OnChainMetadata map[string]interface{} `json:"onchain_metadata"`
}

Asset struct to hold returned asset data

type NftkeymeClient

type NftkeymeClient struct {
	HttpClient http.Client
	BaseUrl    string
}

NftkeymeClient struct to hold client

func NewClientFromEnvironment

func NewClientFromEnvironment() NftkeymeClient

NewClientFromEnvironment create new nftkeyme client using env vars

func (NftkeymeClient) GetAssetsForUser

func (client NftkeymeClient) GetAssetsForUser(token string, policyID string) ([]Asset, error)

GetAssetsForUser gets all the assets for the provided token/user

func (NftkeymeClient) GetUserInfo

func (client NftkeymeClient) GetUserInfo(token string) (*UserInfo, error)

GetUserInfo get user info

type UserInfo

type UserInfo struct {
	ID    string `json:"id"`
	Email string `json:"email"`
}

UserInfo struct to hold user info from nftkeyme

Jump to

Keyboard shortcuts

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