Introduction
Stream
- Webhook
- WebSocket
- Data Models
- Reorg handling
- Filters
Guides
- Deploying Subgraphs
Data Models
Curated Data Model
Swap model
Swaps are abstractions on AMM transfers, procotol & chain agnostic.
Identifier on Mobula: swap
{
"ratio": 1608943.9743539998,
"swapSenderAddress": "CxNUEf6Aw8o8i84GfyPE3ZcKKpa4XRyuXEwypECbdjV8",
"poolAddress": "EQ4p8CGFJz92FkL8H4eeN3txR1ohp613ZWdVkjFromED",
"rawAmount0": "-1000000000",
"rawAmount1": "1608943974354",
"poolType": "raydium",
"swapType": "REGULAR",
"addressToken0": "So11111111111111111111111111111111111111112",
"addressToken1": "GqwD19dg25154kJ8kK2FLCeXZJzPDs6CPaUhdsW9pump",
"blockHeight": "1737653025",
"transactionHash": "3QbHFowf7xeW9BM2fR2TKfYcmUKNnhQN7XyqdEmqS3SWKtfEw686RDxKaFxp3dGGc7D1RZuHaCrzSJEkg3hn9s5A",
"transactionSenderAddress": "CxNUEf6Aw8o8i84GfyPE3ZcKKpa4XRyuXEwypECbdjV8",
"transactionIndex": 0,
"blockHash": "GMKNhiUnUVQrTzYuy2t5qZVd1JfoyGi5LdifNG6gEHiP",
"logIndex": 0,
"chainId": "solana:solana",
"timestamp": "1737653025",
"date": "2025-01-23T17:23:45.000Z",
"priceUSDToken0": 250.0741553570125,
"priceUSDToken1": 0.00015542750980960583,
"amount0": -1,
"amount1": 1608943.974354,
"amountUSD": 250.0741553570125,
"type": "swap"
}
Pool model
Pools are abstractions on AMM pools, protocol & chain agnostic.
Identifier on Mobula: pool
{
"chainId": "solana:solana",
"address": "B945wuhaQz3p238XDnghSsLKix8MiizT2j2yuHSgX7Xi",
"type": "pool",
"factory": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P",
"tokens": [
"So11111111111111111111111111111111111111112",
"C8U4ofzDkFdwxxP9twNut4vkxVVSQovHDedGAQ5apump"
],
"createdAt": 1744358732000,
"deployer": "BjMRkgnfkDPVPjLJqejEV5dhrnVNJ4ycriMp3ctcqYME",
"source": "pumpfun"
}
Transfer model
Transfers represent token movements between addresses
Identifier on Mobula: transfer
{
"data": {
"blockNumber": 22016780,
"chainId": "evm:1",
"transactionHash": "0x4bdc1aa33bb46dbfaed37ce6783a198fb4f3f9ae79e93905edd413c18f195c78",
"transactionIndex": 59,
"transactionFrom": "0x84bdf80c116b10e7c0d550a40698d5564436df23",
"transactionTo": "0x1ef032a3c471a99cc31578c8007f256d95e89896",
"transactionFees": "224878059916348",
"contract": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"date": "2025-03-10T13:29:59.000Z",
"assetId": 102504067,
"from": "0x1ef032a3c471a99cc31578c8007f256d95e89896",
"to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amount": "120000000000000000",
"amountUSD": 254.12725602949004,
"type": "transfer"
},
"chainId": "evm:1"
}
On this page
Assistant
Responses are generated using AI and may contain mistakes.