nft

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NFTokenBuyOffersRequest

type NFTokenBuyOffersRequest struct {
	common.BaseRequest
	NFTokenID   types.NFTokenID        `json:"nft_id"`
	LedgerHash  common.LedgerHash      `json:"ledger_hash,omitempty"`
	LedgerIndex common.LedgerSpecifier `json:"ledger_index,omitempty"`
}

The nft_buy_offers method retrieves all of buy offers for the specified NFToken.

func (*NFTokenBuyOffersRequest) APIVersion added in v0.1.3

func (*NFTokenBuyOffersRequest) APIVersion() int

func (*NFTokenBuyOffersRequest) Method

func (*NFTokenBuyOffersRequest) Method() string

func (*NFTokenBuyOffersRequest) Validate

func (*NFTokenBuyOffersRequest) Validate() error

TODO: Implement V2

type NFTokenBuyOffersResponse

type NFTokenBuyOffersResponse struct {
	NFTokenID types.NFTokenID         `json:"nft_id"`
	Offers    []nfttypes.NFTokenOffer `json:"offers"`
}

The expected response from the nft_buy_offers method.

type NFTokenSellOffersRequest

type NFTokenSellOffersRequest struct {
	common.BaseRequest
	NFTokenID   types.NFTokenID        `json:"nft_id"`
	LedgerHash  common.LedgerHash      `json:"ledger_hash,omitempty"`
	LedgerIndex common.LedgerSpecifier `json:"ledger_index,omitempty"`
}

The nft_sell_offers method retrieves all of sell offers for the specified NFToken.

func (*NFTokenSellOffersRequest) APIVersion added in v0.1.3

func (*NFTokenSellOffersRequest) APIVersion() int

func (*NFTokenSellOffersRequest) Method

func (*NFTokenSellOffersRequest) Method() string

func (*NFTokenSellOffersRequest) Validate

func (*NFTokenSellOffersRequest) Validate() error

TODO: Implement V2

type NFTokenSellOffersResponse

type NFTokenSellOffersResponse struct {
	NFTokenID types.NFTokenID         `json:"nft_id"`
	Offers    []nfttypes.NFTokenOffer `json:"offers"`
}

The expected response from the nft_sell_offers method.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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