What is the messageReceiptCount seemingly always zero from the Fuel Node graphql api?

The docs say this value should be “The number of receipt messages in the block.”, however it appears to basically always be 0. What qualifies as a ‘receipt message root’?

query TransactionsThatHadReceipts {
  blocks(first: 1, after: "7723482") {
    edges {
      node {
        header {
          id
          transactionsCount
          height
          messageReceiptCount
        }
      }
    }
  }
}

As an example, this query is for a block with 2 transactions, and in total it has 34 receipts - 33 in this transaction and a mint in the other.

Infact, I didn’t find a block where this value wasn’t 0 - (although I didn’t scan every single block)

Message receipts are only generated during bridge withdrawals. The count is included in the header to help with generating withdrawal proofs. I just performed a withdrawal myself on testnet and the message receipt count seems accurate:

curl 'https://testnet.fuel.network/v1/graphql' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: https://testnet.fuel.network' --data-binary '{"query":"\n{\n  block(height:\"8752730\") {\n    header {\n      messageReceiptCount\n    }\n  }\n}\n"}' --compressed
2 Likes

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.