For AI agents: an LLM-friendly Markdown version of every page is available by appending .md to its URL or by sending an Accept: text/markdown request header. The full documentation index is at https://www.ankr.com/docs/llms.txt
Skip to main content

Gravity


Gravity API is available on Web3 API platform.

Gravity is a Layer 1 blockchain designed for mass adoption and an omnichain future. Gravity features the following key points:

  • Cross-Chain Transactions: Gravity enables developers to define and settle transactions across multiple blockchains, enhancing efficiency and security.
  • Efficient Verification: With cost-efficient ZKP verification, Gravity ensures economical and secure transactions.
  • Enhanced User Experience: Gravity introduces cryptographic primitives like the secp256r1 curve through precompiled contracts, allowing for cost-effective passkey authentication for Account Abstraction wallets.
  • High-Performance Execution: Gravity integrates the Reth execution layer and the Jolteon consensus algorithm, providing high throughput and near-instant finality.
  • Secure and Robust PoS Mechanism: Powered by G token staking and restaking protocols like Babylon and EigenLayer, Gravity's PoS design incentivizes and unites a diverse community to secure the chain.
  • EVM-Compatible: Gravity is fully EVM-compatible, enabling seamless deployment and interaction with smart contracts.

In order for your Web3 application to interact with Gravity — either by reading blockchain data or sending transactions to the network — it must connect to a Gravity node. Developers interact with the blockchain using the methods provided by the API.

The API interaction follows the JSON-RPC which is a stateless, light-weight remote procedure call (RPC) protocol. It defines several data structures and the rules around their processing. It is transport agnostic in that the concepts can be used within the same process, over sockets, over HTTP, or in other message-passing environments. It uses JSON (RFC 4627) as data format.


Methods supported


Premium-only methods:


Methods

web3, net, eth

eth, debug