Skip to content

Contract Meta Store

Contract Meta Store builds a query index for metadata associated with deployed smart contracts, including their Application Binary Interface (ABI). This lets tools discover contract methods and types without making Chain maintain a metadata-oriented index.

Dependencies and inputs

The service connects to RabbitMQ, starts after Chain in the official Compose topology, and consumes accepted-block information. It extracts relevant contract metadata from the accepted chain data it processes.

Its RPC interface provides contract metadata lookup by contract ID.

State and consistency

The selected release stores its derived index in BadgerDB. The index can lag Chain while catching up, and metadata observed on a recent accepted fork can change if that fork is replaced.

An ABI describes how tools can encode and decode a contract interface. Its presence does not validate the contract or give the metadata independent consensus authority.

If Contract Meta Store is unavailable, contract metadata lookup fails, but contract execution and Chain validation continue.

See Contract ABI for the format and its architectural role.

Versioned sources