starknet_to_webhook.js
1 import { decodeTransfersInBlock, filter } from "../common/starknet.js"; 2 3 // Configure indexer for streaming Starknet Goerli data starting at the specified block. 4 export const config = { 5 streamUrl: "https://goerli.starknet.a5a.ch", 6 startingBlock: 800_000, 7 network: "starknet", 8 filter, 9 sinkType: "webhook", 10 sinkOptions: { 11 // Send data as returned by `transform`. 12 // When `raw = false`, the data is sent together with the starting and end cursor. 13 raw: true, 14 }, 15 }; 16 17 // Transform each block using the function defined in starknet.js. 18 export default decodeTransfersInBlock;