81trust / 100

Nft Collection

by NFT collection metadata in Onchain & crypto

x402 APIPassing, checked 38 min ago

Fetch NFT collection (ERC-721 / ERC-1155) metadata by contract address on Ethereum, Base, Polygon, Arbitrum, or Optimism: name, symbol, token type, total supply, deployer, OpenSea slug + image, floor (ETH), Twitter/Discord, and verification (safelist) status. Use to label a contract address with its collection identity before pulling tokens or sales.

POST https://agent402.tools/api/nft-collection

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
195 ms typical, 195 ms slowest 5%
Last check
38 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/nft-collection" \
  -H "content-type: application/json" \
  -d '{"contract":"0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d","network":"ethereum"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fnft-collection
const res = await pay("https://agent402.tools/api/nft-collection", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"contract":"0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d","network":"ethereum"}),
});
console.log(await res.json());

Example input

{
  "contract": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
  "network": "ethereum"
}

Example output

{
  "contract": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
  "deployedBlockNumber": 12287507,
  "deployerAddress": "0xaba7161a7fb69c88e16ed9f455ce62b791ee4d03",
  "description": "The Bored Ape Yacht Club is a collection of 10,000 unique Bored Ape NFTs.",
  "discordUrl": "https://discord.gg/3P5K3dzgdB",
  "externalUrl": "https://boredapeyachtclub.com",
  "floorPrice": 13.5,
  "floorPriceSource": "opensea",
  "name": "BoredApeYachtClub",
  "network": "ethereum",
  "openSeaImage": "https://...",
  "openSeaSlug": "boredapeyachtclub",
  "safelistStatus": "verified",
  "source": "alchemy-nft-v3",
  "symbol": "BAYC",
  "tokenType": "ERC721",
  "totalSupply": "10000",
  "twitterUsername": "BoredApeYC"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
38 min agoPassed402195 ms$0.002
6 h agoPassed402196 ms$0.002