Associations Endpoints
Description of endpoints used in querying for associations
Last updated
Description of endpoints used in querying for associations
Last updated
GET
/api/v0/user-associations/{{ associationID }}
Retrieve a single user association by ID.
Name | Type | Description |
---|---|---|
{
"AssociationID": "22b1dabed784a8ada7c630e1539829df21e485608c13e3b461a37ff97185ff69",
"TransactorPublicKeyBase58Check": "tBCKXFJEDSF7Thcc6BUBcB6kicE5qzmLbAtvFf9LfKSXN4LwFt36oX",
"TargetUserPublicKeyBase58Check": "tBCKXU8pf7nkn8M38sYJeAwiBP7HbSJWy9Zmn4sHNL6gA6ahkriymq",
"AppPublicKeyBase58Check": "tBCKVUCQ9WxpVmNthS2PKfY1BCxG4GkWvXqDhQ4q3zLtiwKVUNMGYS",
"AssociationType": "ENDORSEMENT",
"AssociationValue": "SQL",
"ExtraData": {
"PeerID": "A"
},
"BlockHeight": 38,
"TransactorProfile": {
"PublicKeyBase58Check": "tBCKXFJEDSF7Thcc6BUBcB6kicE5qzmLbAtvFf9LfKSXN4LwFt36oX",
"Username": "sender",
"Description": "",
"IsHidden": false,
"IsReserved": false,
"IsVerified": false,
"Comments": null,
"Posts": null,
"CoinEntry": {
"CreatorBasisPoints": 0,
"DeSoLockedNanos": 0,
"NumberOfHolders": 0,
"CoinsInCirculationNanos": 0,
"CoinWatermarkNanos": 0,
"BitCloutLockedNanos": 0
},
"DAOCoinEntry": {
"NumberOfHolders": 0,
"CoinsInCirculationNanos": "0x0",
"MintingDisabled": false,
"TransferRestrictionStatus": "unrestricted"
},
"CoinPriceDeSoNanos": 0,
"CoinPriceBitCloutNanos": 0,
"UsersThatHODL": null,
"IsFeaturedTutorialWellKnownCreator": false,
"IsFeaturedTutorialUpAndComingCreator": false,
"ExtraData": null,
"DESOBalanceNanos": 36999999438,
"BestExchangeRateDESOPerDAOCoin": 0
},
"TargetUserProfile": null,
"AppProfile": null
}
...coming soon!
{
"error": "string"
}
POST
/api/v0/user-associations/count
Count the number of user associations matching the provided query parameters.
{
"Count": 1
}
...coming soon!
{
"error": "string"
}
POST
/api/v0/user-associations/counts
Count the number of user associations matching the provided query. Here, you can provide an array of association values and the count of associations matching any in that list will be returned.
{
"Counts": {
"JAVASCRIPT": 0,
"SQL": 1
},
"Total": 1
}
...coming soon!
{
"error": "string"
}
POST
/api/v0/user-associations/query
Retrieve user associations matching the provided query parameters.
{
"Associations": [
{
"AssociationID": "88eb5872de1ae8188e2768874b77dedb3d53fe27df5e7af48783ca8f3d3920f7",
"TransactorPublicKeyBase58Check": "tBCKXFJEDSF7Thcc6BUBcB6kicE5qzmLbAtvFf9LfKSXN4LwFt36oX",
"TargetUserPublicKeyBase58Check": "tBCKXU8pf7nkn8M38sYJeAwiBP7HbSJWy9Zmn4sHNL6gA6ahkriymq",
"AppPublicKeyBase58Check": "tBCKVUCQ9WxpVmNthS2PKfY1BCxG4GkWvXqDhQ4q3zLtiwKVUNMGYS",
"AssociationType": "ENDORSEMENT",
"AssociationValue": "SQL",
"ExtraData": {
"PeerID": "A"
},
"BlockHeight": 33,
"TransactorProfile": null,
"TargetUserProfile": null,
"AppProfile": null
}
],
"PublicKeyToProfileEntryResponse": {
"tBCKVUCQ9WxpVmNthS2PKfY1BCxG4GkWvXqDhQ4q3zLtiwKVUNMGYS": null,
"tBCKXFJEDSF7Thcc6BUBcB6kicE5qzmLbAtvFf9LfKSXN4LwFt36oX": {
"PublicKeyBase58Check": "tBCKXFJEDSF7Thcc6BUBcB6kicE5qzmLbAtvFf9LfKSXN4LwFt36oX",
"Username": "sender",
"Description": "",
"IsHidden": false,
"IsReserved": false,
"IsVerified": false,
"Comments": null,
"Posts": null,
"CoinEntry": {
"CreatorBasisPoints": 0,
"DeSoLockedNanos": 0,
"NumberOfHolders": 0,
"CoinsInCirculationNanos": 0,
"CoinWatermarkNanos": 0,
"BitCloutLockedNanos": 0
},
"DAOCoinEntry": {
"NumberOfHolders": 0,
"CoinsInCirculationNanos": "0x0",
"MintingDisabled": false,
"TransferRestrictionStatus": "unrestricted"
},
"CoinPriceDeSoNanos": 0,
"CoinPriceBitCloutNanos": 0,
"UsersThatHODL": null,
"IsFeaturedTutorialWellKnownCreator": false,
"IsFeaturedTutorialUpAndComingCreator": false,
"ExtraData": null,
"DESOBalanceNanos": 31999999438,
"BestExchangeRateDESOPerDAOCoin": 0
}
}
}
...coming soon!
{
"error": "string"
}
GET
/api/v0/post-associations/{{ associationID }}
Retrieve a single post association by ID.
{
"AssociationID": "0ed4915dec590cf2c6da7c836971d927d8e682c1b5caf6d7e705e5497ff36746",
"TransactorPublicKeyBase58Check": "tBCKXFJEDSF7Thcc6BUBcB6kicE5qzmLbAtvFf9LfKSXN4LwFt36oX",
"PostHashHex": "460f8b4125342af8b4de69018d4b07f862bcd0435f63e75cc376cada35845ddc",
"AppPublicKeyBase58Check": "tBCKVUCQ9WxpVmNthS2PKfY1BCxG4GkWvXqDhQ4q3zLtiwKVUNMGYS",
"AssociationType": "REACTION",
"AssociationValue": "HEART",
"ExtraData": {
"PeerID": "B"
},
"BlockHeight": 37,
"TransactorProfile": {
"PublicKeyBase58Check": "tBCKXFJEDSF7Thcc6BUBcB6kicE5qzmLbAtvFf9LfKSXN4LwFt36oX",
"Username": "sender",
"Description": "",
"IsHidden": false,
"IsReserved": false,
"IsVerified": false,
"Comments": null,
"Posts": null,
"CoinEntry": {
"CreatorBasisPoints": 0,
"DeSoLockedNanos": 0,
"NumberOfHolders": 0,
"CoinsInCirculationNanos": 0,
"CoinWatermarkNanos": 0,
"BitCloutLockedNanos": 0
},
"DAOCoinEntry": {
"NumberOfHolders": 0,
"CoinsInCirculationNanos": "0x0",
"MintingDisabled": false,
"TransferRestrictionStatus": "unrestricted"
},
"CoinPriceDeSoNanos": 0,
"CoinPriceBitCloutNanos": 0,
"UsersThatHODL": null,
"IsFeaturedTutorialWellKnownCreator": false,
"IsFeaturedTutorialUpAndComingCreator": false,
"ExtraData": null,
"DESOBalanceNanos": 35999998542,
"BestExchangeRateDESOPerDAOCoin": 0
},
"PostEntry": {
"PostHashHex": "460f8b4125342af8b4de69018d4b07f862bcd0435f63e75cc376cada35845ddc",
"PosterPublicKeyBase58Check": "tBCKXFJEDSF7Thcc6BUBcB6kicE5qzmLbAtvFf9LfKSXN4LwFt36oX",
"ParentStakeID": "",
"Body": "Hello, world!",
"ImageURLs": null,
"VideoURLs": null,
"RepostedPostEntryResponse": null,
"CreatorBasisPoints": 1000,
"StakeMultipleBasisPoints": 12500,
"TimestampNanos": 1675274688926964176,
"IsHidden": false,
"ConfirmationBlockHeight": 37,
"InMempool": true,
"ProfileEntryResponse": null,
"Comments": null,
"LikeCount": 0,
"DiamondCount": 0,
"PostEntryReaderState": null,
"IsPinned": false,
"PostExtraData": {},
"CommentCount": 0,
"RepostCount": 0,
"QuoteRepostCount": 0,
"ParentPosts": null,
"IsNFT": false,
"NumNFTCopies": 0,
"NumNFTCopiesForSale": 0,
"NumNFTCopiesBurned": 0,
"HasUnlockable": false,
"NFTRoyaltyToCreatorBasisPoints": 0,
"NFTRoyaltyToCoinBasisPoints": 0,
"AdditionalDESORoyaltiesMap": {},
"AdditionalCoinRoyaltiesMap": {},
"DiamondsFromSender": 0,
"HotnessScore": 0,
"PostMultiplier": 0,
"RecloutCount": 0,
"QuoteRecloutCount": 0,
"RecloutedPostEntryResponse": null
},
"PostAuthorProfile": {
"PublicKeyBase58Check": "tBCKXFJEDSF7Thcc6BUBcB6kicE5qzmLbAtvFf9LfKSXN4LwFt36oX",
"Username": "sender",
"Description": "",
"IsHidden": false,
"IsReserved": false,
"IsVerified": false,
"Comments": null,
"Posts": null,
"CoinEntry": {
"CreatorBasisPoints": 0,
"DeSoLockedNanos": 0,
"NumberOfHolders": 0,
"CoinsInCirculationNanos": 0,
"CoinWatermarkNanos": 0,
"BitCloutLockedNanos": 0
},
"DAOCoinEntry": {
"NumberOfHolders": 0,
"CoinsInCirculationNanos": "0x0",
"MintingDisabled": false,
"TransferRestrictionStatus": "unrestricted"
},
"CoinPriceDeSoNanos": 0,
"CoinPriceBitCloutNanos": 0,
"UsersThatHODL": null,
"IsFeaturedTutorialWellKnownCreator": false,
"IsFeaturedTutorialUpAndComingCreator": false,
"ExtraData": null,
"DESOBalanceNanos": 35999998542,
"BestExchangeRateDESOPerDAOCoin": 0
},
"AppProfile": null
}
...coming soon!
{
"error": "string"
}
POST
/api/v0/post-associations/count
Count the number of post associations matching the provided query parameters.
{
"Count": 1
}
...coming soon!
{
"error": "string"
}
POST
/api/v0/post-associations/counts
Count the number of post associations matching the provided query. Here, you can provide an array of association values and the count of associations matching any in that list will be returned.
{
"Counts": {
"HEART": 1,
"LAUGH": 0
},
"Total": 1
}
...coming soon!
{
"error": "string"
}
POST
/api/v0/post-associations/query
Retrieve post associations matching the provided query parameters.
{
"Associations": [
{
"AssociationID": "77cc81b90caadf52bdbcadef72bcf87bdeefc31308779b401141c13e52670caf",
"TransactorPublicKeyBase58Check": "tBCKXFJEDSF7Thcc6BUBcB6kicE5qzmLbAtvFf9LfKSXN4LwFt36oX",
"PostHashHex": "7bf79e2fe04f8eadb66b9877ce04d55b64e2663fb34b392c2f215ca9d6fba938",
"AppPublicKeyBase58Check": "tBCKVUCQ9WxpVmNthS2PKfY1BCxG4GkWvXqDhQ4q3zLtiwKVUNMGYS",
"AssociationType": "REACTION",
"AssociationValue": "HEART",
"ExtraData": {
"PeerID": "B"
},
"BlockHeight": 38,
"TransactorProfile": null,
"PostEntry": null,
"PostAuthorProfile": null,
"AppProfile": null
}
],
"PublicKeyToProfileEntryResponse": {},
"PostHashHexToPostEntryResponse": {
"7bf79e2fe04f8eadb66b9877ce04d55b64e2663fb34b392c2f215ca9d6fba938": {
"PostHashHex": "7bf79e2fe04f8eadb66b9877ce04d55b64e2663fb34b392c2f215ca9d6fba938",
"PosterPublicKeyBase58Check": "tBCKXFJEDSF7Thcc6BUBcB6kicE5qzmLbAtvFf9LfKSXN4LwFt36oX",
"ParentStakeID": "",
"Body": "Hello, world!",
"ImageURLs": null,
"VideoURLs": null,
"RepostedPostEntryResponse": null,
"CreatorBasisPoints": 1000,
"StakeMultipleBasisPoints": 12500,
"TimestampNanos": 1675278243313851247,
"IsHidden": false,
"ConfirmationBlockHeight": 38,
"InMempool": true,
"ProfileEntryResponse": null,
"Comments": null,
"LikeCount": 0,
"DiamondCount": 0,
"PostEntryReaderState": null,
"IsPinned": false,
"PostExtraData": {},
"CommentCount": 0,
"RepostCount": 0,
"QuoteRepostCount": 0,
"ParentPosts": null,
"IsNFT": false,
"NumNFTCopies": 0,
"NumNFTCopiesForSale": 0,
"NumNFTCopiesBurned": 0,
"HasUnlockable": false,
"NFTRoyaltyToCreatorBasisPoints": 0,
"NFTRoyaltyToCoinBasisPoints": 0,
"AdditionalDESORoyaltiesMap": {},
"AdditionalCoinRoyaltiesMap": {},
"DiamondsFromSender": 0,
"HotnessScore": 0,
"PostMultiplier": 0,
"RecloutCount": 0,
"QuoteRecloutCount": 0,
"RecloutedPostEntryResponse": null
}
}
}
...coming soon!
{
"error": "string"
}
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|