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 ¶
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
Click to show internal directories.
Click to hide internal directories.