description |
---|
GET /chains/{chainId}/contractAddress/{contractAddress}/activity |
Query Parameters:
activityTypes: <[string]>
- What types of activities do you want to filter. If not set, all types of data are returned by default- activityType
- sale
- list
- unlist
- mint
- transfer
- activityType
page: <number>
- If not set,1
by defaultlimit: <number>
- Limit the number of records on a page. If not set,100
by default
Results:
<[object]>
- a activity object array
Request example:
{% tabs %} {% tab title="Node.js" %}
const Axios = require("axios");
const projectUuId = 'Your Project Id';
const projectKey = 'Your Project Client Or Server Key';
const chainId = 5; // Goerli Network
const baseUrl = 'https://api-market.particle.network';
const contractAddress = '0x14CC6aF7A7318347419758274049e93DB03236C9';
const url = `${baseUrl}/chains/${chainId}/contractAddress/${contractAddress}/activity`;
(async () => {
const response = await Axios.get(url, {
params: {
projectUuid,
projectKey,
},
});
console.log(JSON.stringify(response.data));
})();
{% endtab %} {% endtabs %}
Response example:
{
"error_code": 0,
"data": {
"isLastPage": true,
"data": [
{
"_id": "641800ec70ee9b4823f28b4e",
"chainId": 5,
"contractAddress": "0x14CC6aF7A7318347419758274049e93DB03236C9",
"tokenId": "7",
"tags": [
"activityType_mint",
"fromAddress_0x0000000000000000000000000000000000000000",
"toAddress_0x5a32928b135c86E58b3F7AbB47A2f720f49D0909",
"tokenId_7"
],
"activityType": "mint",
"fromAddress": "0x0000000000000000000000000000000000000000",
"toAddress": "0x5a32928b135c86E58b3F7AbB47A2f720f49D0909",
"transactionHash": "0x12578fa0c1e3687c5925c14871daa44a2d2d6bee3397d9198bc424b6f5510380",
"data": {
"block_number": "8686121",
"block_timestamp": "2023-03-20T06:43:36.000Z",
"block_hash": "0xfd0b142c7fd7611b3ab065a4d07c34633bd3e29e3dd13b576f8714d68fbe7356",
"transaction_hash": "0x12578fa0c1e3687c5925c14871daa44a2d2d6bee3397d9198bc424b6f5510380",
"transaction_index": 83,
"log_index": 189,
"value": "0",
"contract_type": "ERC721",
"transaction_type": "Single",
"token_address": "0x14cc6af7a7318347419758274049e93db03236c9",
"token_id": "7",
"from_address": "0x0000000000000000000000000000000000000000",
"to_address": "0x5a32928b135c86e58b3f7abb47a2f720f49d0909",
"amount": "1",
"verified": 1,
"operator": null
},
"eventAt": 1679294616000,
"createdAt": 1679294700344,
"token": {
"_id": "641800ef70ee9b4823f28b55",
"chainId": 5,
"contractAddress": "0x14CC6aF7A7318347419758274049e93DB03236C9",
"contractType": 2,
"tokenId": "7",
"tokenUri": "https://ikzttp.mypinata.cloud/ipfs/QmQFkLSQysj94s5GvTHPyzTxrawwtjgiiYS2TBLgrvw8CW/7",
"metadata": {
"name": "Azuki #7",
"image": "https://ikzttp.mypinata.cloud/ipfs/QmYDvPAXtiJg7s8JdRBSLWdgSphQdac8j1YuQNNxcGE1hg/7.png",
"attributes": [
{ "trait_type": "Type", "value": "Human" },
{ "trait_type": "Hair", "value": "Orange Samurai" },
{ "trait_type": "Headgear", "value": "Full Bandana" },
{ "trait_type": "Clothing", "value": "Light Kimono" },
{ "trait_type": "Eyes", "value": "Suspicious" },
{ "trait_type": "Mouth", "value": "Bubble Gum" },
{ "trait_type": "Offhand", "value": "Leather Katana" },
{ "trait_type": "Background", "value": "Off White A" }
]
},
"status": 0,
"tags": [
"attribute|Type|Human$",
"attribute|Hair|Orange Samurai$",
"attribute|Headgear|Full Bandana$",
"attribute|Clothing|Light Kimono$",
"attribute|Eyes|Suspicious$",
"attribute|Mouth|Bubble Gum$",
"attribute|Offhand|Leather Katana$",
"attribute|Background|Off White A$",
"status|0$",
"currentOwner|0x5a32928b135c86E58b3F7AbB47A2f720f49D0909$"
],
"currentOwner": "0x5a32928b135c86E58b3F7AbB47A2f720f49D0909",
"currentOrderHash": "",
"currentOrderPrice": "0",
"currentOrderToken": "",
"currentOrderTokenSymbol": "",
"currentOrderTokenDecimals": 0,
"listedTime": 0,
"expiredTime": 0,
"particleCustomScore1": "0",
"particleCustomScore2": "0",
"particleCustomScore3": "0",
"createdAt": 1679294703909,
"updatedAt": 1679294703911
}
},
{
"_id": "6417fcc270ee9b4823f2884e",
"chainId": 5,
"contractAddress": "0x14CC6aF7A7318347419758274049e93DB03236C9",
"tokenId": "4",
"tags": ["activityType_unlist", "fromAddress_0x027B35c8D685dfE7e3b2B08970bc8650A14CC58a", "toAddress_", "tokenId_4"],
"activityType": "unlist",
"fromAddress": "0x027B35c8D685dfE7e3b2B08970bc8650A14CC58a",
"toAddress": "",
"transactionHash": "",
"data": {
"orderTokenPrice": {
"orderPrice": "10000000000000000",
"orderToken": "0x0000000000000000000000000000000000000000",
"orderTokenDecimals": 18,
"orderTokenSymbol": "ETH"
}
},
"eventAt": 1679293634368,
"createdAt": 1679293634369,
"token": {
"_id": "6411663623f12d36b8a67a15",
"chainId": 5,
"contractAddress": "0x14CC6aF7A7318347419758274049e93DB03236C9",
"contractType": 2,
"tokenId": "4",
"tokenUri": "https://ipfs.moralis.io:2053/ipfs/QmQFkLSQysj94s5GvTHPyzTxrawwtjgiiYS2TBLgrvw8CW/4",
"metadata": {
"name": "Azuki #4",
"image": "https://ikzttp.mypinata.cloud/ipfs/QmYDvPAXtiJg7s8JdRBSLWdgSphQdac8j1YuQNNxcGE1hg/4.png",
"attributes": [
{ "trait_type": "Type", "value": "Human" },
{ "trait_type": "Hair", "value": "Brown Dreadlocks" },
{ "trait_type": "Clothing", "value": "White Qipao with Fur" },
{ "trait_type": "Eyes", "value": "Lightning" },
{ "trait_type": "Mouth", "value": "Smirk" },
{ "trait_type": "Offhand", "value": "Katana" },
{ "trait_type": "Background", "value": "Off White D" }
]
},
"status": 0,
"tags": [
"attribute|Type|Human$",
"attribute|Hair|Brown Dreadlocks$",
"attribute|Clothing|White Qipao with Fur$",
"attribute|Eyes|Lightning$",
"attribute|Mouth|Smirk$",
"attribute|Offhand|Katana$",
"attribute|Background|Off White D$",
"status|0$",
"currentOwner|0x027B35c8D685dfE7e3b2B08970bc8650A14CC58a$"
],
"currentOwner": "0x027B35c8D685dfE7e3b2B08970bc8650A14CC58a",
"currentOrderHash": "",
"currentOrderPrice": "0",
"currentOrderToken": "",
"currentOrderTokenSymbol": "ETH",
"currentOrderTokenDecimals": 0,
"listedTime": 0,
"expiredTime": 0,
"particleCustomScore1": "0",
"particleCustomScore2": "0",
"particleCustomScore3": "0",
"createdAt": 1678861878525,
"updatedAt": 1679293634370,
"currentOrder": null
}
},
{
"_id": "6417fc8d70ee9b4823f287e6",
"chainId": 5,
"contractAddress": "0x14CC6aF7A7318347419758274049e93DB03236C9",
"tokenId": "4",
"tags": ["activityType_list", "fromAddress_0x027B35c8D685dfE7e3b2B08970bc8650A14CC58a", "toAddress_", "tokenId_4"],
"activityType": "list",
"fromAddress": "0x027B35c8D685dfE7e3b2B08970bc8650A14CC58a",
"toAddress": "",
"transactionHash": "",
"data": {
"orderTokenPrice": {
"orderPrice": "10000000000000000",
"orderToken": "0x0000000000000000000000000000000000000000",
"orderTokenDecimals": 18,
"orderTokenSymbol": "ETH"
}
},
"eventAt": 1679293581677,
"createdAt": 1679293581678,
"token": {
"_id": "6411663623f12d36b8a67a15",
"chainId": 5,
"contractAddress": "0x14CC6aF7A7318347419758274049e93DB03236C9",
"contractType": 2,
"tokenId": "4",
"tokenUri": "https://ipfs.moralis.io:2053/ipfs/QmQFkLSQysj94s5GvTHPyzTxrawwtjgiiYS2TBLgrvw8CW/4",
"metadata": {
"name": "Azuki #4",
"image": "https://ikzttp.mypinata.cloud/ipfs/QmYDvPAXtiJg7s8JdRBSLWdgSphQdac8j1YuQNNxcGE1hg/4.png",
"attributes": [
{ "trait_type": "Type", "value": "Human" },
{ "trait_type": "Hair", "value": "Brown Dreadlocks" },
{ "trait_type": "Clothing", "value": "White Qipao with Fur" },
{ "trait_type": "Eyes", "value": "Lightning" },
{ "trait_type": "Mouth", "value": "Smirk" },
{ "trait_type": "Offhand", "value": "Katana" },
{ "trait_type": "Background", "value": "Off White D" }
]
},
"status": 0,
"tags": [
"attribute|Type|Human$",
"attribute|Hair|Brown Dreadlocks$",
"attribute|Clothing|White Qipao with Fur$",
"attribute|Eyes|Lightning$",
"attribute|Mouth|Smirk$",
"attribute|Offhand|Katana$",
"attribute|Background|Off White D$",
"status|0$",
"currentOwner|0x027B35c8D685dfE7e3b2B08970bc8650A14CC58a$"
],
"currentOwner": "0x027B35c8D685dfE7e3b2B08970bc8650A14CC58a",
"currentOrderHash": "",
"currentOrderPrice": "0",
"currentOrderToken": "",
"currentOrderTokenSymbol": "ETH",
"currentOrderTokenDecimals": 0,
"listedTime": 0,
"expiredTime": 0,
"particleCustomScore1": "0",
"particleCustomScore2": "0",
"particleCustomScore3": "0",
"createdAt": 1678861878525,
"updatedAt": 1679293634370,
"currentOrder": null
}
},
{
"_id": "641423454f99e556b3ef76dc",
"chainId": 5,
"contractAddress": "0x14CC6aF7A7318347419758274049e93DB03236C9",
"tokenId": "0",
"tags": [
"activityType_sale",
"fromAddress_0x329a7f8b91Ce7479035cb1B5D62AB41845830Ce8",
"toAddress_0x7b9A20a2A3260af07668f467FBAE20A536B204Eb",
"tokenId_0"
],
"activityType": "sale",
"fromAddress": "0x329a7f8b91Ce7479035cb1B5D62AB41845830Ce8",
"toAddress": "0x7b9A20a2A3260af07668f467FBAE20A536B204Eb",
"transactionHash": "",
"data": {
"orderTokenPrice": {
"orderPrice": "20000000000000000",
"orderToken": "0x0000000000000000000000000000000000000000",
"orderTokenDecimals": 18,
"orderTokenSymbol": "ETH"
}
},
"eventAt": 1679041349277,
"createdAt": 1679041349277,
"token": {
"_id": "6411663623f12d36b8a67a13",
"chainId": 5,
"contractAddress": "0x14CC6aF7A7318347419758274049e93DB03236C9",
"contractType": 2,
"tokenId": "0",
"tokenUri": "https://ikzttp.mypinata.cloud/ipfs/QmQFkLSQysj94s5GvTHPyzTxrawwtjgiiYS2TBLgrvw8CW/0",
"metadata": {
"name": "Azuki #0",
"image": "https://ikzttp.mypinata.cloud/ipfs/QmYDvPAXtiJg7s8JdRBSLWdgSphQdac8j1YuQNNxcGE1hg/0.png",
"attributes": [
{ "trait_type": "Type", "value": "Human" },
{ "trait_type": "Hair", "value": "Water" },
{ "trait_type": "Clothing", "value": "Pink Oversized Kimono" },
{ "trait_type": "Eyes", "value": "Striking" },
{ "trait_type": "Mouth", "value": "Frown" },
{ "trait_type": "Offhand", "value": "Monkey King Staff" },
{ "trait_type": "Background", "value": "Off White A" }
]
},
"status": 1,
"tags": [
"attribute|Type|Human$",
"attribute|Hair|Water$",
"attribute|Clothing|Pink Oversized Kimono$",
"attribute|Eyes|Striking$",
"attribute|Mouth|Frown$",
"attribute|Offhand|Monkey King Staff$",
"attribute|Background|Off White A$",
"status|1$",
"currentOwner|0x7b9A20a2A3260af07668f467FBAE20A536B204Eb$"
],
"currentOwner": "0x7b9A20a2A3260af07668f467FBAE20A536B204Eb",
"currentOrderHash": "0x549999a18888bd60d5a4b9b6496676034a8db019b60cab4d4a1a87dc637ada49",
"currentOrderPrice": "1000000000000000000",
"currentOrderToken": "0x0000000000000000000000000000000000000000",
"currentOrderTokenSymbol": "ETH",
"currentOrderTokenDecimals": 18,
"listedTime": 1679272945000,
"expiredTime": 9007199254740991,
"particleCustomScore1": "0",
"particleCustomScore2": "0",
"particleCustomScore3": "0",
"createdAt": 1678861878366,
"updatedAt": 1679272980548,
"currentOrder": {
"chainId": 5,
"hash": "0x549999a18888bd60d5a4b9b6496676034a8db019b60cab4d4a1a87dc637ada49",
"protocolAddress": "0x00000000000001ad428e4906aE43D8F9852d0dD6",
"protocolData": {
"parameters": {
"offerer": "0x7b9A20a2A3260af07668f467FBAE20A536B204Eb",
"zone": "0x0000000000000000000000000000000000000000",
"zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"startTime": "1679272945",
"endTime": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
"orderType": 0,
"offer": [
{
"itemType": 2,
"token": "0x14CC6aF7A7318347419758274049e93DB03236C9",
"identifierOrCriteria": "0",
"startAmount": "1",
"endAmount": "1"
}
],
"consideration": [
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "940000000000000000",
"endAmount": "940000000000000000",
"recipient": "0x7b9A20a2A3260af07668f467FBAE20A536B204Eb"
},
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "60000000000000000",
"endAmount": "60000000000000000",
"recipient": "0x7DDd4989abb3cDa01BA31ac283c194852E42e1a8"
}
],
"totalOriginalConsiderationItems": 2,
"salt": "0x00000000a4e7ecd5d0212a12",
"conduitKey": "0x0000000000000000000000000000000000000000000000000000000000000000",
"counter": "0"
},
"signature": "0x4b8ba9097a92979fba84ffdb32f32a1076c4c6ef625379b006dd652506208b896d330ae75add9871b0fca3dc9baf6801c3b151f542698cbe9f61a1c4a62aa1fd"
},
"type": "listing",
"status": 0,
"associatedTokens": [{ "tokenAddress": "0x14CC6aF7A7318347419758274049e93DB03236C9", "tokenId": "0", "_id": {} }],
"_id": {},
"createdAt": "2023-03-20T00:43:00.520Z",
"updatedAt": "2023-03-20T00:43:00.523Z"
},
"lastSale": {
"orderPrice": "20000000000000000",
"orderToken": "0x0000000000000000000000000000000000000000",
"orderTokenDecimals": 18,
"orderTokenSymbol": "ETH"
}
}
},
{
"_id": "641423a04f99e556b3ef76f8",
"chainId": 5,
"contractAddress": "0x14CC6aF7A7318347419758274049e93DB03236C9",
"tokenId": "0",
"tags": [
"activityType_transfer",
"fromAddress_0x329a7f8b91Ce7479035cb1B5D62AB41845830Ce8",
"toAddress_0x7b9A20a2A3260af07668f467FBAE20A536B204Eb",
"tokenId_0"
],
"activityType": "transfer",
"fromAddress": "0x329a7f8b91Ce7479035cb1B5D62AB41845830Ce8",
"toAddress": "0x7b9A20a2A3260af07668f467FBAE20A536B204Eb",
"transactionHash": "0x96954266131fcfbd81bb875dcd8e175653a83c8640915b2247cccda353f11d33",
"data": {
"block_number": "8669496",
"block_timestamp": "2023-03-17T08:22:24.000Z",
"block_hash": "0x650ccc210b0e18e53d18a2d4c80c586a218a3734a5761775d86d81d027cc4c2a",
"transaction_hash": "0x96954266131fcfbd81bb875dcd8e175653a83c8640915b2247cccda353f11d33",
"transaction_index": 25,
"log_index": 60,
"value": "20000000000000000",
"contract_type": "ERC721",
"transaction_type": "Single",
"token_address": "0x14cc6af7a7318347419758274049e93db03236c9",
"token_id": "0",
"from_address": "0x329a7f8b91ce7479035cb1b5d62ab41845830ce8",
"to_address": "0x7b9a20a2a3260af07668f467fbae20a536b204eb",
"amount": "1",
"verified": 1,
"operator": null
},
"eventAt": 1679041344000,
"createdAt": 1679041440420,
"token": {
"_id": "6411663623f12d36b8a67a13",
"chainId": 5,
"contractAddress": "0x14CC6aF7A7318347419758274049e93DB03236C9",
"contractType": 2,
"tokenId": "0",
"tokenUri": "https://ikzttp.mypinata.cloud/ipfs/QmQFkLSQysj94s5GvTHPyzTxrawwtjgiiYS2TBLgrvw8CW/0",
"metadata": {
"name": "Azuki #0",
"image": "https://ikzttp.mypinata.cloud/ipfs/QmYDvPAXtiJg7s8JdRBSLWdgSphQdac8j1YuQNNxcGE1hg/0.png",
"attributes": [
{ "trait_type": "Type", "value": "Human" },
{ "trait_type": "Hair", "value": "Water" },
{ "trait_type": "Clothing", "value": "Pink Oversized Kimono" },
{ "trait_type": "Eyes", "value": "Striking" },
{ "trait_type": "Mouth", "value": "Frown" },
{ "trait_type": "Offhand", "value": "Monkey King Staff" },
{ "trait_type": "Background", "value": "Off White A" }
]
},
"status": 1,
"tags": [
"attribute|Type|Human$",
"attribute|Hair|Water$",
"attribute|Clothing|Pink Oversized Kimono$",
"attribute|Eyes|Striking$",
"attribute|Mouth|Frown$",
"attribute|Offhand|Monkey King Staff$",
"attribute|Background|Off White A$",
"status|1$",
"currentOwner|0x7b9A20a2A3260af07668f467FBAE20A536B204Eb$"
],
"currentOwner": "0x7b9A20a2A3260af07668f467FBAE20A536B204Eb",
"currentOrderHash": "0x549999a18888bd60d5a4b9b6496676034a8db019b60cab4d4a1a87dc637ada49",
"currentOrderPrice": "1000000000000000000",
"currentOrderToken": "0x0000000000000000000000000000000000000000",
"currentOrderTokenSymbol": "ETH",
"currentOrderTokenDecimals": 18,
"listedTime": 1679272945000,
"expiredTime": 9007199254740991,
"particleCustomScore1": "0",
"particleCustomScore2": "0",
"particleCustomScore3": "0",
"createdAt": 1678861878366,
"updatedAt": 1679272980548,
"currentOrder": {
"chainId": 5,
"hash": "0x549999a18888bd60d5a4b9b6496676034a8db019b60cab4d4a1a87dc637ada49",
"protocolAddress": "0x00000000000001ad428e4906aE43D8F9852d0dD6",
"protocolData": {
"parameters": {
"offerer": "0x7b9A20a2A3260af07668f467FBAE20A536B204Eb",
"zone": "0x0000000000000000000000000000000000000000",
"zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"startTime": "1679272945",
"endTime": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
"orderType": 0,
"offer": [
{
"itemType": 2,
"token": "0x14CC6aF7A7318347419758274049e93DB03236C9",
"identifierOrCriteria": "0",
"startAmount": "1",
"endAmount": "1"
}
],
"consideration": [
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "940000000000000000",
"endAmount": "940000000000000000",
"recipient": "0x7b9A20a2A3260af07668f467FBAE20A536B204Eb"
},
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "60000000000000000",
"endAmount": "60000000000000000",
"recipient": "0x7DDd4989abb3cDa01BA31ac283c194852E42e1a8"
}
],
"totalOriginalConsiderationItems": 2,
"salt": "0x00000000a4e7ecd5d0212a12",
"conduitKey": "0x0000000000000000000000000000000000000000000000000000000000000000",
"counter": "0"
},
"signature": "0x4b8ba9097a92979fba84ffdb32f32a1076c4c6ef625379b006dd652506208b896d330ae75add9871b0fca3dc9baf6801c3b151f542698cbe9f61a1c4a62aa1fd"
},
"type": "listing",
"status": 0,
"associatedTokens": [{ "tokenAddress": "0x14CC6aF7A7318347419758274049e93DB03236C9", "tokenId": "0", "_id": {} }],
"_id": {},
"createdAt": "2023-03-20T00:43:00.520Z",
"updatedAt": "2023-03-20T00:43:00.523Z"
},
"lastSale": {
"orderPrice": "20000000000000000",
"orderToken": "0x0000000000000000000000000000000000000000",
"orderTokenDecimals": 18,
"orderTokenSymbol": "ETH"
}
}
}
]
}
}