Versions in this module Expand all Collapse all v0 v0.0.4 Apr 5, 2024 v0.0.3 Apr 4, 2024 v0.0.2 Apr 4, 2024 v0.0.1 Jan 9, 2024 Changes in this version + var ContextAPIKey = contextKey("apikey") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextOAuth2 = contextKey("token") + func CacheExpires(r *http.Response) time.Time + type APIClient struct + InfoApi *InfoApiService + NfdApi *NfdApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) ChangeBasePath(path string) + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type BasicAuth struct + Password string + UserName string + type Configuration struct + BasePath string + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + Scheme string + UserAgent string + func NewConfiguration() *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + type ConsensusRecord struct + Account string + LastPropBlock int32 + LastPropTime time.Time + LastVoteBlock int32 + LastVoteTime time.Time + LinkType string + OwnerAccount string + PctOfOnline float64 + Proposals int32 + Rank int64 + Votes int32 + type ContractLockRequestBody struct + Lock bool + Sender string + type Donation struct + Address string + Total int32 + type DonationAccount struct + Address string + Image string + Name string + Nfd string + type EscrowOfferRequestBody struct + Buyer string + Offer int32 + type GenericSwaggerError struct + func (e GenericSwaggerError) Body() []byte + func (e GenericSwaggerError) Error() string + func (e GenericSwaggerError) Model() interface{} + type InfoApiService service + func (a *InfoApiService) InfoVersion(ctx context.Context) (VersionResponseBody, *http.Response, error) + func (a *InfoApiService) Infoinfoopenapi3Yaml(ctx context.Context) (*http.Response, error) + type IsValidAsaResponseBody struct + AppID int32 + IsValid bool + Message string + Name string + type IsValidNfdResponseBody struct + IsValid bool + Message string + Name string + SigNameAddress string + type KickoffRequestBody struct + Buyer string + Name string + type LinkAddressRequestBody struct + Address []string + Sender string + type ModelError struct + Fault bool + Id string + Message string + Name string + Temporary bool + Timeout bool + type Nfd struct + AppID int32 + AsaID int32 + AvatarOutdated bool + CaAlgo []string + CacheControl string + Category string + CurrentAsOfBlock int32 + DepositAccount string + Etag string + MetaTags []string + Name string + NfdAccount string + Owner string + ParentAppID int32 + Properties *NfdProperties + ReservedFor string + SaleType string + SellAmount int32 + Seller string + SigNameAddress string + State string + Tags []string + TimeChanged time.Time + TimeCreated time.Time + TimePurchased time.Time + UnverifiedCa map[string][]string + UnverifiedCaAlgo []string + type NfdActivity struct + Block int32 + CacheControl string + Changes map[string]string + Etag string + MatchCheck string + Name string + TimeChanged time.Time + type NfdAnalyticEvent struct + Block int32 + Buyer string + CarryCost int32 + Category string + CurrentOwner string + Event string + GroupID string + MetaTags []string + Name string + Note string + SaleType string + Seller string + type NfdAnalyticRecord struct + Data *NfdAnalyticEvent + Price int32 + PriceUsd float64 + Timestamp time.Time + type NfdAnalyticRecords struct + MatchCheck string + Results []NfdAnalyticRecord + Total int32 + type NfdApiNfdActivityOpts struct + AfterTime optional.Time + IfNoneMatch optional.String + Limit optional.Int32 + Sort optional.String + Type_ optional.String + type NfdApiNfdAnalyticsOpts struct + AfterTime optional.Time + Buyer optional.String + Category optional.Interface + Event optional.Interface + ExcludeNFDAsSeller optional.Bool + IfNoneMatch optional.String + IncludeOwner optional.Bool + Length optional.Interface + Limit optional.Int32 + MaxPrice optional.Int64 + MinPrice optional.Int64 + Name optional.String + Offset optional.Int32 + ParentAppID optional.Int32 + RequireBuyer optional.Bool + SaleType optional.Interface + Seller optional.String + Sort optional.String + Traits optional.Interface + type NfdApiNfdBadgesOpts struct + IfNoneMatch optional.String + type NfdApiNfdBrowseOpts struct + Category optional.Interface + ChangedAfter optional.Time + IfNoneMatch optional.String + Length optional.Interface + Limit optional.Int32 + MaxPrice optional.Int64 + MinPrice optional.Int64 + Name optional.String + Offset optional.Int32 + Owner optional.String + ParentAppID optional.Int32 + Prefix optional.String + ReservedFor optional.String + SaleType optional.Interface + Sort optional.String + State optional.Interface + Substring optional.String + Traits optional.Interface + View optional.String + Vproperty optional.String + Vvalue optional.String + type NfdApiNfdConsensusLeadersOpts struct + IfNoneMatch optional.String + RequireNFD optional.Bool + type NfdApiNfdConsensusMetricsOpts struct + IfNoneMatch optional.String + type NfdApiNfdGetLookupOpts struct + AllowUnverified optional.Bool + IfNoneMatch optional.String + View optional.String + type NfdApiNfdGetNFDOpts struct + IfNoneMatch optional.String + Nocache optional.Bool + Poll optional.Bool + View optional.String + type NfdApiNfdGetNFDsForAddressesOpts struct + IfNoneMatch optional.String + Limit optional.Int32 + View optional.String + type NfdApiNfdGetNFDsForAddressesV2Opts struct + IfNoneMatch optional.String + Limit optional.Int32 + View optional.String + type NfdApiNfdGetOpenAuctionsOpts struct + Name optional.String + StartingSoon optional.Bool + type NfdApiNfdSearchV1Opts struct + IfNoneMatch optional.String + Limit optional.Int32 + Owner optional.String + Prefix optional.String + RequireAddresses optional.Bool + ReservedFor optional.String + Substring optional.String + Test00r optional.Bool + View optional.String + Vproperty optional.String + Vvalue optional.String + type NfdApiNfdSearchV2Opts struct + Category optional.Interface + ChangedAfter optional.Time + ExcludeUserReserved optional.Bool + IfNoneMatch optional.String + Length optional.Interface + Limit optional.Int32 + MaxPrice optional.Int64 + MaxPriceUsd optional.Int64 + MinPrice optional.Int64 + MinPriceUsd optional.Int64 + Name optional.String + Offset optional.Int32 + Owner optional.String + ParentAppID optional.Int64 + Prefix optional.String + ReservedFor optional.String + SaleType optional.Interface + SegmentLocked optional.Bool + SegmentRoot optional.Bool + Sort optional.String + State optional.Interface + Substring optional.String + Traits optional.Interface + View optional.String + Vproperty optional.String + Vvalue optional.String + type NfdApiNfdSegmentLeadersOpts struct + IfNoneMatch optional.String + type NfdApiNfdSuggestOpts struct + Buyer optional.String + Limit optional.Int32 + View optional.String + type NfdApiNfdTotalsOpts struct + IfNoneMatch optional.String + type NfdApiNfdTwitterLeadersOpts struct + IfNoneMatch optional.String + type NfdApiNfdUpdateImageOpts struct + WantTxn optional.Bool + type NfdApiService service + func (a *NfdApiService) NfdActivity(ctx context.Context, name []string, localVarOptionals *NfdApiNfdActivityOpts) ([]NfdActivity, *http.Response, error) + func (a *NfdApiService) NfdAnalytics(ctx context.Context, localVarOptionals *NfdApiNfdAnalyticsOpts) (NfdAnalyticRecords, *http.Response, error) + func (a *NfdApiService) NfdBadges(ctx context.Context, name string, localVarOptionals *NfdApiNfdBadgesOpts) (map[string][]map[string]string, *http.Response, error) + func (a *NfdApiService) NfdBrowse(ctx context.Context, localVarOptionals *NfdApiNfdBrowseOpts) ([]NfdRecord, *http.Response, error) + func (a *NfdApiService) NfdConsensusLeaders(ctx context.Context, localVarOptionals *NfdApiNfdConsensusLeadersOpts) ([]ConsensusRecord, *http.Response, error) + func (a *NfdApiService) NfdConsensusMetrics(ctx context.Context, localVarOptionals *NfdApiNfdConsensusMetricsOpts) (map[string][]map[string]string, *http.Response, error) + func (a *NfdApiService) NfdContractLock(ctx context.Context, body ContractLockRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdContractUpgrade(ctx context.Context, body RescindOfferRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdDonationLeaders(ctx context.Context, address string) ([]Donation, *http.Response, error) + func (a *NfdApiService) NfdDonationLeadersV2(ctx context.Context, name string) ([]Donation, *http.Response, error) + func (a *NfdApiService) NfdDonationList(ctx context.Context) ([]DonationAccount, *http.Response, error) + func (a *NfdApiService) NfdDonationListV2(ctx context.Context) ([]NfdRecordResponseFull, *http.Response, error) + func (a *NfdApiService) NfdDonations(ctx context.Context, name string) ([]Donation, *http.Response, error) + func (a *NfdApiService) NfdEscrowOffer(ctx context.Context, body EscrowOfferRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdGetLookup(ctx context.Context, address []string, ...) (map[string]NfdRecordinaddress, *http.Response, error) + func (a *NfdApiService) NfdGetNFD(ctx context.Context, nameOrID string, localVarOptionals *NfdApiNfdGetNFDOpts) (NfdRecord, *http.Response, error) + func (a *NfdApiService) NfdGetNFDsForAddresses(ctx context.Context, address []string, ...) ([]NfdRecord, *http.Response, error) + func (a *NfdApiService) NfdGetNFDsForAddressesV2(ctx context.Context, address []string, ...) (map[string][]NfdRecordinaddress, *http.Response, error) + func (a *NfdApiService) NfdGetNameSig(ctx context.Context, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdGetOpenAuctions(ctx context.Context, localVarOptionals *NfdApiNfdGetOpenAuctionsOpts) ([]NfdAuctionAndPrice, *http.Response, error) + func (a *NfdApiService) NfdGetRevAddressSig(ctx context.Context, address string) (string, *http.Response, error) + func (a *NfdApiService) NfdIsValidASA(ctx context.Context, asaID int32) (IsValidAsaResponseBody, *http.Response, error) + func (a *NfdApiService) NfdIsValidNFD(ctx context.Context, appID int32) (IsValidNfdResponseBody, *http.Response, error) + func (a *NfdApiService) NfdKickoff(ctx context.Context, body KickoffRequestBody) (string, *http.Response, error) + func (a *NfdApiService) NfdLinkAddress(ctx context.Context, body LinkAddressRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdOffer(ctx context.Context, body OfferRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdPartnerKickoff(ctx context.Context, body PartnerKickoffRequestBody) (string, *http.Response, error) + func (a *NfdApiService) NfdPostOfferToOwner(ctx context.Context, body PostOfferToOwnerRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdPurchase(ctx context.Context, body PurchaseRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdRescindOffer(ctx context.Context, body RescindOfferRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdSearchV1(ctx context.Context, localVarOptionals *NfdApiNfdSearchV1Opts) ([]NfdRecord, *http.Response, error) + func (a *NfdApiService) NfdSearchV2(ctx context.Context, localVarOptionals *NfdApiNfdSearchV2Opts) (NfdV2SearchRecords, *http.Response, error) + func (a *NfdApiService) NfdSegmentLeaders(ctx context.Context, localVarOptionals *NfdApiNfdSegmentLeadersOpts) ([]NfdRecord, *http.Response, error) + func (a *NfdApiService) NfdSegmentLock(ctx context.Context, body SegmentLockRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdSegmentPrice(ctx context.Context, buyer string, name string) (SegmentPriceResponseBody, *http.Response, error) + func (a *NfdApiService) NfdSendFromVault(ctx context.Context, body SendFromVaultRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdSendToVault(ctx context.Context, body SendToVaultRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdSetPrimaryAddress(ctx context.Context, body SetPrimaryAddressRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdSetPrimaryNFD(ctx context.Context, body SetPrimaryAddressRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdSuggest(ctx context.Context, name string, localVarOptionals *NfdApiNfdSuggestOpts) ([]NfdRecord, *http.Response, error) + func (a *NfdApiService) NfdTotals(ctx context.Context, localVarOptionals *NfdApiNfdTotalsOpts) (TotalsOkResponseBody, *http.Response, error) + func (a *NfdApiService) NfdTwitterLeaders(ctx context.Context, localVarOptionals *NfdApiNfdTwitterLeadersOpts) ([]TwitterRecord, *http.Response, error) + func (a *NfdApiService) NfdUnlinkAddress(ctx context.Context, body LinkAddressRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdUpdateAll(ctx context.Context, body UpdatePartialRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdUpdateImage(ctx context.Context, name string, sender string, which string, ...) (string, *http.Response, error) + func (a *NfdApiService) NfdUpdatePartial(ctx context.Context, body UpdatePartialRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdVaultOptInLock(ctx context.Context, body VaultOptInLockRequestBody, name string) (string, *http.Response, error) + func (a *NfdApiService) NfdVerifyConfirm(ctx context.Context, body VerifyConfirmRequestBody, id string) (VerifyConfirmResponseBody, *http.Response, error) + func (a *NfdApiService) NfdVerifyRequest(ctx context.Context, body VerifyRequestRequestBody) (VerifyRequestResponseBody, *http.Response, error) + type NfdAuction struct + CeilingPrice int32 + CurrentPrice int32 + EndTime time.Time + FloorPrice int32 + Name string + NewEndTime time.Time + NewFloorPrice int32 + StartTime time.Time + type NfdAuctionAndPrice struct + AuctionInfo *NfdAuction + ChangePerMinute int32 + ElapsedMinutes int64 + Price int32 + TotalMinutes int64 + type NfdProperties struct + Internal map[string]string + UserDefined map[string]string + Verified map[string]string + type NfdRecord struct + AppID int64 + AsaID int64 + AvatarOutdated bool + CaAlgo []string + Category string + CurrentAsOfBlock int32 + DepositAccount string + MatchCheck string + MetaTags []string + Name string + NfdAccount string + Owner string + ParentAppID int32 + Properties *NfdProperties + ReservedFor string + SaleType string + SellAmount int32 + Seller string + SigNameAddress string + State string + Tags []string + TimeChanged time.Time + TimeCreated time.Time + TimePurchased time.Time + UnverifiedCa map[string][]string + UnverifiedCaAlgo []string + type NfdRecordResponseFull struct + AppID int32 + AsaID int32 + AvatarOutdated bool + CaAlgo []string + CacheControl string + Category string + CurrentAsOfBlock int32 + DepositAccount string + Etag string + MatchCheck string + MetaTags []string + Name string + NfdAccount string + Owner string + ParentAppID int32 + Properties *NfdProperties + ReservedFor string + SaleType string + SellAmount int32 + Seller string + SigNameAddress string + State string + Tags []string + TimeChanged time.Time + TimeCreated time.Time + TimePurchased time.Time + UnverifiedCa map[string][]string + UnverifiedCaAlgo []string + type NfdRecordinaddress struct + AppID int32 + AsaID int32 + AvatarOutdated bool + CaAlgo []string + CacheControl string + Category string + CurrentAsOfBlock int32 + DepositAccount string + Etag string + MatchCheck string + MetaTags []string + Name string + NfdAccount string + Owner string + ParentAppID int32 + Properties *NfdProperties + ReservedFor string + SaleType string + SellAmount int32 + Seller string + SigNameAddress string + State string + Tags []string + TimeChanged time.Time + TimeCreated time.Time + TimePurchased time.Time + UnverifiedCa map[string][]string + UnverifiedCaAlgo []string + type NfdV2SearchRecords struct + MatchCheck string + Nfds *[]NfdRecord + Total int32 + type OfferRequestBody struct + Offer int32 + PayReceiver bool + ReservedFor string + Sender string + type PartnerKickoffRequestBody struct + Buyer string + ConveniencePct int64 + Name string + type PostOfferToOwnerRequestBody struct + Note string + Offer int32 + Sender string + type PurchaseRequestBody struct + Buyer string + Offer int32 + RejectNFT bool + type RateLimited struct + Limit int64 + SecsRemaining int64 + type RescindOfferRequestBody struct + Sender string + type SegmentLockRequestBody struct + Lock bool + SellAmount int32 + Sender string + type SegmentPriceResponseBody struct + AlgoUsd float64 + CarryCost int32 + DiscountRate float64 + ParentSegmentCount int32 + SellAmount int32 + UnlockedSellPrice float64 + UsdMinCost float64 + type SendFromVaultRequestBody struct + Amount uint64 + Assets []uint64 + Note string + Receiver string + ReceiverCanSign bool + ReceiverType string + Sender string + type SendToVaultRequestBody struct + Amount uint64 + Assets []uint64 + Note string + OptInOnly bool + Sender string + type SetPrimaryAddressRequestBody struct + Address string + Sender string + type TotalsOkResponseBody struct + ForSale int32 + MatchCheck string + MintedTotals *TotalsOkResponseBodyMintedTotals + SegmentTotals *TotalsOkResponseBodySegmentTotals + SoldTotals *TotalsOkResponseBodySoldTotals + Total int32 + TotalSegments int32 + UniqueOwners int32 + type TotalsOkResponseBodyMintedTotals struct + Day int32 + Lifetime int32 + Month int32 + Week int32 + type TotalsOkResponseBodySegmentTotals struct + Day int32 + Lifetime int32 + Month int32 + Week int32 + type TotalsOkResponseBodySoldTotals struct + Day int32 + Lifetime int32 + Month int32 + Week int32 + type TwitterRecord struct + Followers int32 + Following int32 + Nfd *Nfd + TimeChanged time.Time + Tweets int32 + TwitterHandle string + type UpdatePartialRequestBody struct + Properties *NfdProperties + Sender string + type VaultOptInLockRequestBody struct + Lock bool + ReLockAt time.Time + Sender string + type VerifyConfirmRequestBody struct + Challenge string + type VerifyConfirmResponseBody struct + Confirmed bool + type VerifyRequestRequestBody struct + FieldToVerify string + Name string + Sender string + type VerifyRequestResponseBody struct + Challenge string + Id string + Validated bool + type VersionResponseBody struct + AppVersion string + ContractVersion string