198 lines
11 KiB
Go
198 lines
11 KiB
Go
// nolint: misspell
|
||
package alchemy
|
||
|
||
const collectionJSON = `{
|
||
"address": "0x06012c8cf97BEaD5deAe237070F9587f8E7A266d",
|
||
"name": "CryptoKitties",
|
||
"symbol": "CK",
|
||
"totalSupply": "2023564",
|
||
"tokenType": "ERC721",
|
||
"contractDeployer": "0xba52c75764d6F594735dc735Be7F1830CDf58dDf",
|
||
"deployedBlockNumber": 4605167,
|
||
"openSeaMetadata": {
|
||
"floorPrice": 0.003,
|
||
"collectionName": "CryptoKitties",
|
||
"collectionSlug": "cryptokitties",
|
||
"safelistRequestStatus": "verified",
|
||
"imageUrl": "https://i.seadn.io/gae/C272ZRW1RGGef9vKMePFSCeKc1Lw6U40wl9ofNVxzUxFdj84hH9xJRQNf-7wgs7W8qw8RWe-1ybKp-VKuU5D-tg?w=500&auto=format",
|
||
"description": "CryptoKitties is a game centered around breedable, collectible, and oh-so-adorable creatures we call CryptoKitties! Each cat is one-of-a-kind and 100% owned by you; it cannot be replicated, taken away, or destroyed.",
|
||
"externalUrl": null,
|
||
"twitterUsername": "CryptoKitties",
|
||
"discordUrl": "https://discord.gg/cryptokitties",
|
||
"bannerImageUrl": "https://i.seadn.io/gcs/static/banners/cryptokitties-banner2.png?w=500&auto=format",
|
||
"lastIngestedAt": "2024-02-05T23:13:45.000Z"
|
||
}
|
||
}`
|
||
|
||
const ownedCollectiblesJSON = `{
|
||
"ownedNfts": [
|
||
{
|
||
"contract": {
|
||
"address": "0x2b1870752208935fDA32AB6A016C01a27877CF12",
|
||
"name": null,
|
||
"symbol": null,
|
||
"totalSupply": null,
|
||
"tokenType": "ERC1155",
|
||
"contractDeployer": "0x5Df2E003CEcb0ebf69cBd8F7Fbb6F44F690331F2",
|
||
"deployedBlockNumber": 8088320,
|
||
"openSeaMetadata": {
|
||
"floorPrice": 0,
|
||
"collectionName": "Unidentified contract - SkdH8ZQtyB",
|
||
"collectionSlug": "unidentified-contract-skdh8zqtyb",
|
||
"safelistRequestStatus": "not_requested",
|
||
"imageUrl": null,
|
||
"description": null,
|
||
"externalUrl": null,
|
||
"twitterUsername": null,
|
||
"discordUrl": null,
|
||
"bannerImageUrl": null,
|
||
"lastIngestedAt": "2024-01-28T06:17:57.000Z"
|
||
},
|
||
"isSpam": null,
|
||
"spamClassifications": []
|
||
},
|
||
"tokenId": "50659039041325838222074459099120411190538227963344971355684955900852972814336",
|
||
"tokenType": "ERC1155",
|
||
"name": "HODL",
|
||
"description": "The enemy king sent a single message, written on a parchment stained by blood.\n“You are advised to submit without further delay, for if I bring my army into your land, I will destroy your hodlings, slay your people, and burn your city to ashes.”\nHodlers of ENJ sent a single word as reply:\n“If.”\nThe battle that followed does not come around too often, a battle that began every legend told about the warriors that gained eternal glory. \nThe battle that followed seemed like a lost one from the very beginning. \nThe enemy army was revealed at dawn, illuminated by the rising Sun.The ground shook as countless hordes marched towards a small band of men armed with shields, spears and swords.\nThe hodlers were outnumbered, one thousand to one. \nFear, doubt and uncertainty did not reach their hearts and minds - for they were born for this. \nEach hodler was bred for warfare, instructed in bloodshed, groomed to become a poet of death. \nA philosopher of war, blood and glory. \nEach man was forged into an invincible soldier that had a single driving force during each battle.\nStand your ground - at all costs. \nAs the swarm of enemies approached, the king yelled, asking his men: \n“Hodlers! What is your profession?”\n“HODL! HODL! HODL! HODL!!! HODL!!!!!” they replied, hitting spears against their shields. \nAn endless stream of arrows fell from the heavens only moments later, blocking out the Sun so they could fight in the shade. They emerged from the darkness without even a single scratch, protected by their legendary Enjin shields. \nWave after wave, their enemies rushed towards their doom, as they were met with cold tips of thrusting spears and sharp edges of crimson swords.\nAgainst all odds, the wall of men and steel held against the never-ending, shilling swarm. \nWhat was left of the enemy army retreated, fleeing in absolute panic and indisputable terror.\nBathed in blood, the ENJ hodlers were victorious.\nTheir story will be told for thousands of years, immortalized with divine blocks and chains.\n* * *\n“HODL” was minted in 2018 for our amazing community of epic Enjin HODLers. We are extremely grateful for the trust you've put in us and the products we're making - and the mission we're trying to accomplish, and hope you’ll love this token of our appreciation. ",
|
||
"tokenUri": "https://cdn.enjin.io/mint/meta/70000000000001b2.json",
|
||
"image": {
|
||
"cachedUrl": "https://nft-cdn.alchemy.com/eth-mainnet/c5c93ffa8146ade7d3694c0f28463f0c",
|
||
"thumbnailUrl": "https://res.cloudinary.com/alchemyapi/image/upload/thumbnailv2/eth-mainnet/c5c93ffa8146ade7d3694c0f28463f0c",
|
||
"pngUrl": "https://res.cloudinary.com/alchemyapi/image/upload/convert-png/eth-mainnet/c5c93ffa8146ade7d3694c0f28463f0c",
|
||
"contentType": "image/jpeg",
|
||
"size": 256926,
|
||
"originalUrl": "https://cdn.enjin.io/mint/image/70000000000001b2.jpg"
|
||
},
|
||
"raw": {
|
||
"tokenUri": "https://cdn.enjin.io/mint/meta/70000000000001b2.json",
|
||
"metadata": {
|
||
"name": "HODL",
|
||
"description": "The enemy king sent a single message, written on a parchment stained by blood.\n“You are advised to submit without further delay, for if I bring my army into your land, I will destroy your hodlings, slay your people, and burn your city to ashes.”\nHodlers of ENJ sent a single word as reply:\n“If.”\nThe battle that followed does not come around too often, a battle that began every legend told about the warriors that gained eternal glory. \nThe battle that followed seemed like a lost one from the very beginning. \nThe enemy army was revealed at dawn, illuminated by the rising Sun.The ground shook as countless hordes marched towards a small band of men armed with shields, spears and swords.\nThe hodlers were outnumbered, one thousand to one. \nFear, doubt and uncertainty did not reach their hearts and minds - for they were born for this. \nEach hodler was bred for warfare, instructed in bloodshed, groomed to become a poet of death. \nA philosopher of war, blood and glory. \nEach man was forged into an invincible soldier that had a single driving force during each battle.\nStand your ground - at all costs. \nAs the swarm of enemies approached, the king yelled, asking his men: \n“Hodlers! What is your profession?”\n“HODL! HODL! HODL! HODL!!! HODL!!!!!” they replied, hitting spears against their shields. \nAn endless stream of arrows fell from the heavens only moments later, blocking out the Sun so they could fight in the shade. They emerged from the darkness without even a single scratch, protected by their legendary Enjin shields. \nWave after wave, their enemies rushed towards their doom, as they were met with cold tips of thrusting spears and sharp edges of crimson swords.\nAgainst all odds, the wall of men and steel held against the never-ending, shilling swarm. \nWhat was left of the enemy army retreated, fleeing in absolute panic and indisputable terror.\nBathed in blood, the ENJ hodlers were victorious.\nTheir story will be told for thousands of years, immortalized with divine blocks and chains.\n* * *\n“HODL” was minted in 2018 for our amazing community of epic Enjin HODLers. We are extremely grateful for the trust you've put in us and the products we're making - and the mission we're trying to accomplish, and hope you’ll love this token of our appreciation. ",
|
||
"image": "https://cdn.enjin.io/mint/image/70000000000001b2.jpg"
|
||
},
|
||
"error": null
|
||
},
|
||
"collection": {
|
||
"name": "Unidentified contract - SkdH8ZQtyB",
|
||
"slug": "unidentified-contract-skdh8zqtyb",
|
||
"externalUrl": null,
|
||
"bannerImageUrl": null
|
||
},
|
||
"mint": {
|
||
"mintAddress": null,
|
||
"blockNumber": null,
|
||
"timestamp": null,
|
||
"transactionHash": null
|
||
},
|
||
"owners": null,
|
||
"timeLastUpdated": "2024-01-03T19:11:04.681Z",
|
||
"balance": "1",
|
||
"acquiredAt": {
|
||
"blockTimestamp": null,
|
||
"blockNumber": null
|
||
}
|
||
},
|
||
{
|
||
"contract": {
|
||
"address": "0x3f6B1585AfeFc56433C8d28AA89dbc77af59278f",
|
||
"name": "Simpson Punk",
|
||
"symbol": "SIMPUNK",
|
||
"totalSupply": "1789",
|
||
"tokenType": "ERC721",
|
||
"contractDeployer": "0xa74E02F671e00eeFbf4e13D9D89B397523653E67",
|
||
"deployedBlockNumber": 18607457,
|
||
"openSeaMetadata": {
|
||
"floorPrice": 0.00069,
|
||
"collectionName": "SimpsonPunks",
|
||
"collectionSlug": "simpsonpunkseth",
|
||
"safelistRequestStatus": "not_requested",
|
||
"imageUrl": "https://raw.seadn.io/files/e7765f13c4658f514d0efc008ae7f300.png",
|
||
"description": "1,789 SimpsonPunks entered the Blockchain????",
|
||
"externalUrl": null,
|
||
"twitterUsername": "SimpsonPunksETH",
|
||
"discordUrl": null,
|
||
"bannerImageUrl": null,
|
||
"lastIngestedAt": "2024-01-31T00:06:00.000Z"
|
||
},
|
||
"isSpam": null,
|
||
"spamClassifications": []
|
||
},
|
||
"tokenId": "900",
|
||
"tokenType": "ERC721",
|
||
"name": "#900",
|
||
"description": "5,555 SimpsonPunks entered the Ethereum Blockchain🍩",
|
||
"tokenUri": "https://alchemy.mypinata.cloud/ipfs/bafybeidqbmbglapk2bkffa4o2ws5jhxnhlbdeqh7k6tk62pukse3xhvv2e/900.json",
|
||
"image": {
|
||
"cachedUrl": "https://nft-cdn.alchemy.com/eth-mainnet/52accf48dc609088738b15808fe07e8c",
|
||
"thumbnailUrl": "https://res.cloudinary.com/alchemyapi/image/upload/thumbnailv2/eth-mainnet/52accf48dc609088738b15808fe07e8c",
|
||
"pngUrl": "https://res.cloudinary.com/alchemyapi/image/upload/convert-png/eth-mainnet/52accf48dc609088738b15808fe07e8c",
|
||
"contentType": "image/png",
|
||
"size": 21206,
|
||
"originalUrl": "https://ipfs.io/ipfs/bafybeib2metombffkovfzbjhljpcmobb5wqazsbpenz2drysgm7und47ym/900.png"
|
||
},
|
||
"raw": {
|
||
"tokenUri": "ipfs://bafybeidqbmbglapk2bkffa4o2ws5jhxnhlbdeqh7k6tk62pukse3xhvv2e/900.json",
|
||
"metadata": {
|
||
"date": 1700514890266,
|
||
"image": "ipfs://bafybeib2metombffkovfzbjhljpcmobb5wqazsbpenz2drysgm7und47ym/900.png",
|
||
"name": "#900",
|
||
"description": "5,555 SimpsonPunks entered the Ethereum Blockchain🍩",
|
||
"edition": 900,
|
||
"attributes": [
|
||
{
|
||
"value": "Background",
|
||
"trait_type": "layers"
|
||
},
|
||
{
|
||
"value": "Monkey",
|
||
"trait_type": "Face"
|
||
},
|
||
{
|
||
"value": "Sweatband Blue",
|
||
"trait_type": "Head"
|
||
},
|
||
{
|
||
"value": "Thin Full",
|
||
"trait_type": "Facial Hair"
|
||
},
|
||
{
|
||
"value": "Burger",
|
||
"trait_type": "Mouth"
|
||
}
|
||
],
|
||
"imageHash": "c1055d7f183405a5ec934bf6d83ac653740795cbf40031e3b34e957a352b471c",
|
||
"compiler": "HashLips Art Engine - NFTChef fork"
|
||
},
|
||
"error": null
|
||
},
|
||
"collection": {
|
||
"name": "SimpsonPunks",
|
||
"slug": "simpsonpunkseth",
|
||
"externalUrl": null,
|
||
"bannerImageUrl": null
|
||
},
|
||
"mint": {
|
||
"mintAddress": null,
|
||
"blockNumber": null,
|
||
"timestamp": null,
|
||
"transactionHash": null
|
||
},
|
||
"owners": null,
|
||
"timeLastUpdated": "2024-01-03T21:02:33.333Z",
|
||
"balance": "1",
|
||
"acquiredAt": {
|
||
"blockTimestamp": null,
|
||
"blockNumber": null
|
||
}
|
||
}
|
||
],
|
||
"totalCount": 53,
|
||
"validAt": {
|
||
"blockNumber": 19169748,
|
||
"blockHash": "0x95badbc2af9d0fa4ecfb614e6f24910e027b3e0a5c6fa4c32521ff5bc7754693",
|
||
"blockTimestamp": "2024-02-06T14:20:11Z"
|
||
},
|
||
"pageKey": "MHgyYjE4NzA3NTIyMDg5MzVmZGEzMmFiNmEwMTZjMDFhMjc4NzdjZjEyOjB4NzgwMDAwMDAwMDAwMDIyZTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDpmYWxzZQ=="
|
||
}`
|