Skip to main content

General Swap Feed

Get a paginated feed of swaps from Farcaster users, optionally adding weight for a provided FID's followed users. Provides real-time swap activity tailored to a Farcaster user's social graph.

generalSwapFeed

Returns a paginated list of swap transactions from Farcaster users. The feed can be personalized by providing a Farcaster ID (FID) to emphasize swaps for a user's followed accounts.

  • Real-time swap activity from Farcaster users
  • Social graph weighting based on followed users
  • Cross-chain swap tracking
  • Paginated results with cursor-based navigation
  • Volume and transaction metadata

Example Use Case: Farcaster Swap Feed

Get the latest swap activity from your Farcaster network, with emphasis on users you follow.

Try it nowArrow pointing right

Example Query

query GeneralSwapFeed {
generalSwapFeed {
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
edges {
cursor
node {
id
type
swap {
amount
chainId
fid
id
isBuy
parentUrl
timestamp
transactionHash
volumeUsd
network {
chainId
}
farcasterContext {
likeCount
}
profile {
fid
}
token {
address
symbol
}
}
}
}
}
}

Example Response

{
"data": {
"generalSwapFeed": {
"pageInfo": {
"hasPreviousPage": false,
"hasNextPage": true,
"startCursor": null,
"endCursor": "TmpoalpEZzBPREUwTkRSbE1tTTJObVZrWVdZeVpEbGxmRFk9"
},
"edges": [
{
"cursor": "NjhjZDg0ODE0NDRlMmM2NmVkYWYyZDllfDY=",
"node": {
"id": "Q2hhbm5lbEZlZWRTd2FwLWV0aGVyZXVtfDB4MzBjM2FhN2MxM2MxMzJhZTUxMzgwZTdhZDhiYzhmMWZhMmY2YzUxMTE5ODYxMTk3NzA5N2I1NmU1NTg1NDcwOXwzMDN8MTc1ODI5ODYzMTAwMHwweGM1MDY3M2VkYjNhN2I5NGU4Y2FkOGE3ZDRlMGNkNjg4NjRlMzNlZGZ8dHJ1ZQ==",
"type": "swap",
"swap": {
"amount": 215842.47257994284,
"chainId": 1,
"fid": 303,
"id": "Q2hhbm5lbEZlZWRTd2FwLWV0aGVyZXVtfDB4MzBjM2FhN2MxM2MxMzJhZTUxMzgwZTdhZDhiYzhmMWZhMmY2YzUxMTE5ODYxMTk3NzA5N2I1NmU1NTg1NDcwOXwzMDN8MTc1ODI5ODYzMTAwMHwweGM1MDY3M2VkYjNhN2I5NGU4Y2FkOGE3ZDRlMGNkNjg4NjRlMzNlZGZ8dHJ1ZQ==",
"isBuy": true,
"parentUrl": "swap://Q2hhbm5lbEZlZWRTd2FwLWV0aGVyZXVtfDB4MzBjM2FhN2MxM2MxMzJhZTUxMzgwZTdhZDhiYzhmMWZhMmY2YzUxMTE5ODYxMTk3NzA5N2I1NmU1NTg1NDcwOXwzMDN8MTc1ODI5ODYzMTAwMHwweGM1MDY3M2VkYjNhN2I5NGU4Y2FkOGE3ZDRlMGNkNjg4NjRlMzNlZGZ8dHJ1ZQ==",
"timestamp": 1758298631000,
"transactionHash": "0x30c3aa7c13c132ae51380e7ad8bc8f1fa2f6c511198611977097b56e55854709",
"volumeUsd": "4484.7698966",
"network": {
"chainId": 1
},
"farcasterContext": {
"likeCount": 0
},
"profile": {
"fid": 303
},
"token": {
"address": "0xc50673edb3a7b94e8cad8a7d4e0cd68864e33edf",
"symbol": "PNKSTR"
}
}
}
},
{
"cursor": "NjhjZDg0ODE0NDRlMmM2NmVkYWYyZDllfDY=",
"node": {
"id": "Q2hhbm5lbEZlZWRTd2FwLWV0aGVyZXVtfDB4ZTgwNzkwYThhNWUxZDJlZTI4MmFhOGU0Mjk0OGIxM2U4MTZjNDkxYmQyYzA5MWRiMmU2ODAyZmIyMzQ1OTNjM3wyMjE1Nzh8MTc1ODI5NzEwNzAwMHwweGM1MDY3M2VkYjNhN2I5NGU4Y2FkOGE3ZDRlMGNkNjg4NjRlMzNlZGZ8dHJ1ZQ==",
"type": "swap",
"swap": {
"amount": 115964.3610503389,
"chainId": 1,
"fid": 221578,
"id": "Q2hhbm5lbEZlZWRTd2FwLWV0aGVyZXVtfDB4ZTgwNzkwYThhNWUxZDJlZTI4MmFhOGU0Mjk0OGIxM2U4MTZjNDkxYmQyYzA5MWRiMmU2ODAyZmIyMzQ1OTNjM3wyMjE1Nzh8MTc1ODI5NzEwNzAwMHwweGM1MDY3M2VkYjNhN2I5NGU4Y2FkOGE3ZDRlMGNkNjg4NjRlMzNlZGZ8dHJ1ZQ==",
"isBuy": true,
"parentUrl": "swap://Q2hhbm5lbEZlZWRTd2FwLWV0aGVyZXVtfDB4ZTgwNzkwYThhNWUxZDJlZTI4MmFhOGU0Mjk0OGIxM2U4MTZjNDkxYmQyYzA5MWRiMmU2ODAyZmIyMzQ1OTNjM3wyMjE1Nzh8MTc1ODI5NzEwNzAwMHwweGM1MDY3M2VkYjNhN2I5NGU4Y2FkOGE3ZDRlMGNkNjg4NjRlMzNlZGZ8dHJ1ZQ==",
"timestamp": 1758297107000,
"transactionHash": "0xe80790a8a5e1d2ee282aa8e42948b13e816c491bd2c091db2e6802fb234593c3",
"volumeUsd": "2236.85",
"network": {
"chainId": 1
},
"farcasterContext": {
"likeCount": 0
},
"profile": {
"fid": 221578
},
"token": {
"address": "0xc50673edb3a7b94e8cad8a7d4e0cd68864e33edf",
"symbol": "PNKSTR"
}
}
}
}
]
}
}
}

Arguments

ArgumentDescriptionTypeRequired
firstNumber of swap items to fetch (default: 6)IntNo
afterCursor for paginationStringNo
fidFarcaster ID to weight feed for followed usersIntNo

Fields

FieldDescriptionType
pageInfoPagination informationPageInfo!
edgesArray of swap feed results[FarcasterSwapFeedV2Edge!]!

FarcasterSwapFeedV2Edge Fields

FieldDescriptionType
cursorPagination cursor for this itemString!
nodeThe swap feed item dataFarcasterRelevantSwapFeedItem!

FarcasterRelevantSwapFeedItem Fields

FieldDescriptionType
idUnique identifierID!
typeType of feed itemString!
swapDetailed swap informationChannelFeedSwap

ChannelFeedSwap Fields

FieldDescriptionType
idUnique identifierID!
fidFarcaster ID of the swapperInt!
transactionHashTransaction hash on blockchainString!
timestampWhen the swap occurredTimestamp!
chainIdChain ID where swap occurredInt!
volumeUsdUSD value of the swapString!
amountToken amount swappedFloat!
isBuyWhether this was a buy or sellBoolean!
parentUrlAssociated Farcaster parent URLString!
topHatFarcaster top hat contextFarcasterTopHat
farcasterContextFIP-2 context data (requires fid param)FarcasterFip2Context!
networkNetwork informationNetworkObject!
tokenToken informationFungibleToken
profileFarcaster profile dataFarcasterProfile

PageInfo Fields

FieldDescriptionType
hasPreviousPageWhether there are previous resultsBoolean!
hasNextPageWhether there are more resultsBoolean!
startCursorCursor of the first item in resultsString
endCursorCursor of the last item in resultsString

FarcasterFip2Context Fields

FieldDescriptionType
idUnique identifierID!
uriURI of the Farcaster castString!
likeCountNumber of likes on the castInt!
recastCountNumber of recastsInt!
commentCountNumber of comments (deprecated)Int!
replyCountNumber of repliesInt!
quoteCountNumber of quote castsInt!
isLikedWhether the cast is a likeBoolean!
isRecastWhether the cast is a recastBoolean!