Documentation ¶
Index ¶
- type Client
- func (mc *Client) GetNFTsByAddr(addr string)
- func (mc *Client) GetOwnersByTokenId(contract string, tokenId string, limit int, cursor *string) (*NFTResult, error)
- func (mc *Client) GetTransfersByContract(params *TransfersPrarams) (*NftTransferResult, error)
- func (mc *Client) GetTransfersByTokenId(params *TransfersByTokenIdPrarams) (*NftTransferResult, error)
- func (mc *Client) OwnersOfContract(contract string, limit int, cursor *string) (*NFTResult, error)
- type MoralisOptions
- type NFTItem
- type NFTMetadata
- type NFTResult
- type NftTransfer
- type NftTransferResult
- type RequestParams
- type SyncStatus
- type TransfersByTokenIdPrarams
- type TransfersPrarams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetNFTsByAddr ¶
func (*Client) GetOwnersByTokenId ¶
func (*Client) GetTransfersByContract ¶
func (mc *Client) GetTransfersByContract(params *TransfersPrarams) (*NftTransferResult, error)
func (*Client) GetTransfersByTokenId ¶
func (mc *Client) GetTransfersByTokenId(params *TransfersByTokenIdPrarams) (*NftTransferResult, error)
type MoralisOptions ¶
type MoralisOptions struct {
ApiKey string
}
type NFTMetadata ¶
type NftTransfer ¶
type NftTransfer struct { TokenAddress string `json:"token_address"` TokenID string `json:"token_id"` FromAddress string `json:"from_address"` ToAddress string `json:"to_address"` Value string `json:"value"` Amount string `json:"amount"` ContractType string `json:"contract_type"` BlockNumber string `json:"block_number"` BlockTimestamp string `json:"block_timestamp"` TransactionHash string `json:"transaction_hash"` Operator string `json:"operator"` }
type NftTransferResult ¶
type RequestParams ¶
type RequestParams struct { Chain *string `json:"chain"` Limit *int `json:"limit"` Cursor *string `json:"cursor"` }
func (*RequestParams) Query ¶
func (rp *RequestParams) Query() map[string]string
type SyncStatus ¶
type SyncStatus string
const ( StatusSyncing SyncStatus = "SYNCING" StatusSynced SyncStatus = "SYNCED" )
type TransfersByTokenIdPrarams ¶
type TransfersByTokenIdPrarams struct { TransfersPrarams TokenId string }
type TransfersPrarams ¶
type TransfersPrarams struct { RequestParams Contract string }
Click to show internal directories.
Click to hide internal directories.