# README
Go API client for swagger
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
Overview
This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.
- API version: 2
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen
Installation
Put the package under your project folder and add the following in import:
import "./swagger"
Documentation for API Endpoints
All URIs are relative to https://deep-index.moralis.io/api/v2
Class | Method | HTTP request | Description |
---|---|---|---|
AccountApi | GetNFTTransfers | Get /{address}/nft/transfers | Gets NFT transfers to and from a given address |
AccountApi | GetNFTs | Get /{address}/nft | Gets the NFTs owned by a given address |
AccountApi | GetNFTsForContract | Get /{address}/nft/{token_address} | Gets the NFTs owned by a given address |
AccountApi | GetNativeBalance | Get /{address}/balance | Gets native balance for a specific address. |
AccountApi | GetTokenBalances | Get /{address}/erc20 | Gets token balances for a specific address. |
AccountApi | GetTokenTransfers | Get /{address}/erc20/transfers | Gets erc 20 token transactions |
AccountApi | GetTransactions | Get /{address} | Gets native transactions |
DefiApi | GetPairAddress | Get /{token0_address}/{token1_address}/pairAddress | Get pair address based on token0 and token1 address |
DefiApi | GetPairReserves | Get /{pair_address}/reserves | Get liquidity pair reserves for an Uniswap V2 based Exchange. |
InfoApi | EndpointWeights | Get /info/endpointWeights | Returns the endpoint price list for rate limits and costs |
InfoApi | Web3ApiVersion | Get /web3/version | Returns the web3 api version |
NativeApi | GetBlock | Get /block/{block_number_or_hash} | Gets block contents by block hash |
NativeApi | GetContractEvents | Post /{address}/events | Gets events by topic |
NativeApi | GetDateToBlock | Get /dateToBlock | Gets the closest block of the provided date |
NativeApi | GetLogsByAddress | Get /{address}/logs | Gets address logs |
NativeApi | GetNFTTransfersByBlock | Get /block/{block_number_or_hash}/nft/transfers | Gets NFT transfers by block number or block hash |
NativeApi | GetTransaction | Get /transaction/{transaction_hash} | Get transaction details by transaction hash |
NativeApi | RunContractFunction | Post /{address}/function | Runs a function of a contract abi |
ResolveApi | ResolveAddress | Get /resolve/{address}/reverse | Return the ENS domain when available (Only for ETH) |
ResolveApi | ResolveDomain | Get /resolve/{domain} | Resolves an Unstoppable domain and returns the address |
StorageApi | UploadFolder | Post /ipfs/uploadFolder | Uploads multiple files and place them in a folder directory |
TokenApi | GetAllTokenIds | Get /nft/{address} | Retrieves the unique NFTs inside a given contract |
TokenApi | GetContractNFTTransfers | Get /nft/{address}/transfers | Gets NFT transfers of a given contract |
TokenApi | GetNFTLowestPrice | Get /nft/{address}/lowestprice | Get the lowest price found for a nft token contract |
TokenApi | GetNFTMetadata | Get /nft/{address}/metadata | Gets the global metadata for a given contract |
TokenApi | GetNFTOwners | Get /nft/{address}/owners | Gets the owners of the NFTs of a given contract |
TokenApi | GetNFTTrades | Get /nft/{address}/trades | Get nft trades by marketplaces |
TokenApi | GetNftTransfersFromToBlock | Get /nft/transfers | Gets NFT transfers from a block number to a block number |
TokenApi | GetTokenAddressTransfers | Get /erc20/{address}/transfers | Gets erc20 transactions of a token contract |
TokenApi | GetTokenAllowance | Get /erc20/{address}/allowance | Gets the amount which the spender is allowed to withdraw from the owner. |
TokenApi | GetTokenIdMetadata | Get /nft/{address}/{token_id} | Gets the NFT with the given id of a given contract |
TokenApi | GetTokenIdOwners | Get /nft/{address}/{token_id}/owners | Gets the owners of NFTs for a given contract |
TokenApi | GetTokenMetadata | Get /erc20/metadata | Gets token metadata |
TokenApi | GetTokenMetadataBySymbol | Get /erc20/metadata/symbols | Gets token metadata |
TokenApi | GetTokenPrice | Get /erc20/{address}/price | Gets token price |
TokenApi | GetWalletTokenIdTransfers | Get /nft/{address}/{token_id}/transfers | Gets NFT transfers of a given contract |
TokenApi | ReSyncMetadata | Get /nft/{address}/{token_id}/metadata/resync | resync the metadata for a given token_id |
TokenApi | SearchNFTs | Get /nft/search | Retrieves the NFT data based on a metadata search |
TokenApi | SyncNFTContract | Put /nft/{address}/sync | Sync a Contract for NFT Index |
Documentation For Models
- Block
- BlockDate
- BlockTransaction
- ChainList
- EndpointWeights
- Ens
- Erc20Allowance
- Erc20Metadata
- Erc20Price
- Erc20TokenBalance
- Erc20Transaction
- Erc20TransactionCollection
- Erc721Metadata
- HistoricalNftTransfer
- IpfsFile
- IpfsFileRequest
- Log
- LogEvent
- LogEventByAddress
- MetadataResync
- NativeBalance
- NativeErc20Price
- Nft
- NftCollection
- NftContractMetadata
- NftContractMetadataCollection
- NftMetadata
- NftMetadataCollection
- NftOwner
- NftOwnerCollection
- NftTransfer
- NftTransferCollection
- ReservesCollection
- Resolve
- RunContractDto
- Trade
- TradeCollection
- Transaction
- TransactionCollection
- Web3version
Documentation For Authorization
ApiKeyAuth
- Type: API key
Example
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)
Author
moralis-go-client
# Packages
* Moralis API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: 2
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/.
* Moralis API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: 2
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/.