Get Address Portfolio
curl --request GET \
--url https://api.uniblock.dev/uni/v1/token/portfolio \
--header 'X-API-KEY: <api-key>'const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.uniblock.dev/uni/v1/token/portfolio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.uniblock.dev/uni/v1/token/portfolio"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"fungibles": [
{
"contractAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"balance": "199999999999",
"formattedBalance": "19.9999999999",
"name": "Ethereum",
"symbol": "ETH",
"logo": "https://assets.coingecko.com/coins/images/279/large/ethereum.png",
"decimals": "18",
"associatedTokenAddress": "EkSPbKodUFbYmsX5LuvfnSoRAozZ3kxT9wy71pf6eL2d",
"quote": "1343.5555418442548"
}
],
"native": {
"contractAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"balance": "199999999999",
"formattedBalance": "19.9999999999",
"name": "Ethereum",
"symbol": "ETH",
"logo": "https://assets.coingecko.com/coins/images/279/large/ethereum.png",
"decimals": "18"
},
"nfts": [
{
"contractAddress": "0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0",
"name": "CryptoCitizens",
"symbol": "CITIZEN",
"ercType": "ERC721",
"tokenId": "5000372",
"tokenURI": "http://token.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372",
"amount": "1",
"metadata": [
{
"name": "CyrptoMexa #372",
"description": "CryptoMexas are the sixth edition in the CryptoCitizens collection, an ongoing generative portrait series based on real people from communities around the world. Holders of CryptoCitizens are members of the Bright Moments DAO.",
"image": "https://media-proxy.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372.png",
"traits": "[\n {\n \"value\": \"All CryptoMexas\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Body: Dark\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"City: CDMX\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Gear: Vihuela\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Bodywear: Charro Suit\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Facewear: Red Shades\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Footwear: Black Shoes\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Headwear: White Cap\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Background: Avenida Álvaro Obregón\",\n \"trait_type\": \"CryptoMexa\"\n }\n ]"
}
],
"rawMetadata": "{\"aspect_ratio\":1,\"traits\":[{\"value\":\"All CryptoMexas\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Body: Dark\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"City: CDMX\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Gear: Vihuela\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Bodywear: Charro Suit\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Facewear: Red Shades\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Footwear: Black Shoes\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Headwear: White Cap\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Background: Avenida Álvaro Obregón\",\"trait_type\":\"CryptoMexa\"}],\"tokenID\":\"5000372\",\"generator_url\":\"https://generator.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372\",\"artist\":\"Qian Qian\",\"description\":\"CryptoMexas are the sixth edition in the CryptoCitizens collection, an ongoing generative portrait series based on real people from communities around the world. Holders of CryptoCitizens are members of the Bright Moments DAO.\",\"preview_asset_url\":\"https://media-proxy.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372.png\",\"platform\":\"CryptoCitizens\",\"features\":{\"Background\":\"Avenida Álvaro Obregón\",\"Bodywear\":\"Charro Suit\",\"Footwear\":\"Black Shoes\",\"Headwear\":\"White Cap\",\"Facewear\":\"Red Shades\",\"City\":\"CDMX\",\"Body\":\"Dark\",\"Gear\":\"Vihuela\"},\"external_url\":\"\",\"payout_address\":\"0xe79e97c3e7990672c3d45c46714ef748dd0ea7df\",\"token_hash\":\"0xc290d582815ba978115cc3bfdd547bf39e11f548f6e72a8461166c29eaeed7e3\",\"project_id\":\"5\",\"is_static\":false,\"primary_asset_url\":\"https://generator.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372\",\"image\":\"https://media-proxy.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372.png\",\"animation_url\":\"https://generator.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372\",\"website\":\"https://brightmoments.io\",\"royaltyInfo\":{\"additionalPayeePercentage\":50,\"artistAddress\":\"0xb96e81f80b3aeef65cb6d0e280b15fd5dbe71937\",\"additionalPayee\":\"0x8fcc2dc884ed69b12d31c11363f2ff532bfec350\",\"royaltyFeeByID\":5},\"license\":\"NIFTY\",\"engine_type\":\"fullyonchain\",\"series\":\"N/A\",\"name\":\"CryptoMexa #372\",\"minted\":true,\"script_type\":\"tone@14.8.15\",\"collection_name\":\"CryptoMexa by Qian Qian\"}",
"cachedImage": "https://cdn.simplehash.com/assets/383ae90349efc3f992d7e23ac35c7d8f8e09362f14acb9750192e92fcbde323f.png",
"updateAuthorityAddress": "H6CMJqjhnm9ia7Cg2jBYF6fWSQsqXuwEJd3xbjt5NxKg",
"associatedTokenAddress": "FxWDVLKBbh2krxwXQsMsCpGDqRLQZxJJT5WwWvnHqPFw"
}
],
"cursor": "ALC_MHgyMzEyZjAwMTQ5ZDAxMDgwNmQ5ZWY2ZjNlYTMyMGViMWUxYTZiYzhlOjB4MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDFhYTpmYWxzZQ=="
}Token
Get Address Portfolio
Get the portfolio of an address.
GET
/
token
/
portfolio
Get Address Portfolio
curl --request GET \
--url https://api.uniblock.dev/uni/v1/token/portfolio \
--header 'X-API-KEY: <api-key>'const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.uniblock.dev/uni/v1/token/portfolio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.uniblock.dev/uni/v1/token/portfolio"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"fungibles": [
{
"contractAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"balance": "199999999999",
"formattedBalance": "19.9999999999",
"name": "Ethereum",
"symbol": "ETH",
"logo": "https://assets.coingecko.com/coins/images/279/large/ethereum.png",
"decimals": "18",
"associatedTokenAddress": "EkSPbKodUFbYmsX5LuvfnSoRAozZ3kxT9wy71pf6eL2d",
"quote": "1343.5555418442548"
}
],
"native": {
"contractAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"balance": "199999999999",
"formattedBalance": "19.9999999999",
"name": "Ethereum",
"symbol": "ETH",
"logo": "https://assets.coingecko.com/coins/images/279/large/ethereum.png",
"decimals": "18"
},
"nfts": [
{
"contractAddress": "0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0",
"name": "CryptoCitizens",
"symbol": "CITIZEN",
"ercType": "ERC721",
"tokenId": "5000372",
"tokenURI": "http://token.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372",
"amount": "1",
"metadata": [
{
"name": "CyrptoMexa #372",
"description": "CryptoMexas are the sixth edition in the CryptoCitizens collection, an ongoing generative portrait series based on real people from communities around the world. Holders of CryptoCitizens are members of the Bright Moments DAO.",
"image": "https://media-proxy.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372.png",
"traits": "[\n {\n \"value\": \"All CryptoMexas\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Body: Dark\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"City: CDMX\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Gear: Vihuela\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Bodywear: Charro Suit\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Facewear: Red Shades\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Footwear: Black Shoes\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Headwear: White Cap\",\n \"trait_type\": \"CryptoMexa\"\n },\n {\n \"value\": \"Background: Avenida Álvaro Obregón\",\n \"trait_type\": \"CryptoMexa\"\n }\n ]"
}
],
"rawMetadata": "{\"aspect_ratio\":1,\"traits\":[{\"value\":\"All CryptoMexas\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Body: Dark\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"City: CDMX\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Gear: Vihuela\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Bodywear: Charro Suit\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Facewear: Red Shades\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Footwear: Black Shoes\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Headwear: White Cap\",\"trait_type\":\"CryptoMexa\"},{\"value\":\"Background: Avenida Álvaro Obregón\",\"trait_type\":\"CryptoMexa\"}],\"tokenID\":\"5000372\",\"generator_url\":\"https://generator.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372\",\"artist\":\"Qian Qian\",\"description\":\"CryptoMexas are the sixth edition in the CryptoCitizens collection, an ongoing generative portrait series based on real people from communities around the world. Holders of CryptoCitizens are members of the Bright Moments DAO.\",\"preview_asset_url\":\"https://media-proxy.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372.png\",\"platform\":\"CryptoCitizens\",\"features\":{\"Background\":\"Avenida Álvaro Obregón\",\"Bodywear\":\"Charro Suit\",\"Footwear\":\"Black Shoes\",\"Headwear\":\"White Cap\",\"Facewear\":\"Red Shades\",\"City\":\"CDMX\",\"Body\":\"Dark\",\"Gear\":\"Vihuela\"},\"external_url\":\"\",\"payout_address\":\"0xe79e97c3e7990672c3d45c46714ef748dd0ea7df\",\"token_hash\":\"0xc290d582815ba978115cc3bfdd547bf39e11f548f6e72a8461166c29eaeed7e3\",\"project_id\":\"5\",\"is_static\":false,\"primary_asset_url\":\"https://generator.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372\",\"image\":\"https://media-proxy.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372.png\",\"animation_url\":\"https://generator.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372\",\"website\":\"https://brightmoments.io\",\"royaltyInfo\":{\"additionalPayeePercentage\":50,\"artistAddress\":\"0xb96e81f80b3aeef65cb6d0e280b15fd5dbe71937\",\"additionalPayee\":\"0x8fcc2dc884ed69b12d31c11363f2ff532bfec350\",\"royaltyFeeByID\":5},\"license\":\"NIFTY\",\"engine_type\":\"fullyonchain\",\"series\":\"N/A\",\"name\":\"CryptoMexa #372\",\"minted\":true,\"script_type\":\"tone@14.8.15\",\"collection_name\":\"CryptoMexa by Qian Qian\"}",
"cachedImage": "https://cdn.simplehash.com/assets/383ae90349efc3f992d7e23ac35c7d8f8e09362f14acb9750192e92fcbde323f.png",
"updateAuthorityAddress": "H6CMJqjhnm9ia7Cg2jBYF6fWSQsqXuwEJd3xbjt5NxKg",
"associatedTokenAddress": "FxWDVLKBbh2krxwXQsMsCpGDqRLQZxJJT5WwWvnHqPFw"
}
],
"cursor": "ALC_MHgyMzEyZjAwMTQ5ZDAxMDgwNmQ5ZWY2ZjNlYTMyMGViMWUxYTZiYzhlOjB4MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDFhYTpmYWxzZQ=="
}Query Parameters
Unique identifier for a blockchain network.
Available options:
1, 10, 100, 10143, 10200, 11011, 11124, 11155111, 11155420, 130, 1301, 1315, 137, 14, 1514, 167000, 168587773, 1868, 1946, 196, 2020, 2021, 250, 2741, 30, 300, 31, 324, 33111, 33139, 360, 37111, 40, 42161, 421614, 42220, 43113, 43114, 4663, 46630, 480, 4801, 534351, 534352, 5371, 5373, 56, 57, 57073, 59141, 59144, 660279, 763373, 7777777, 80002, 80094, 81457, 8453, 84532, 97, 999999999, solana, solana-devnet, stellar, stellar-testnet Example:
1
Response
200 - application/json
Was this page helpful?