Developers
DevelopersGuides
  • Introducing Bond
    • Introduction
    • Why we build Bond?
    • Roles In Bond Ecosystem
    • Decentralised Relations/Social Graph
    • Architecture
    • Bond Reward Model
      • Leech Principle
      • Barrel Principle
  • Main Concepts
    • Bond Profile
      • Identity
      • Relationships
      • Content
      • Creator Economy
    • Connection
      • Connection NFTs
    • Bond Social Graph
    • Centralities
      • In/Out Degree Centrality
      • Betweenness Centrality
      • Closeness Centrality
      • PageRank Centrality
    • Reward Models
    • Reward Contracts
    • Off-chain Oracles
    • Gasless Mode
    • Cross Chain Messaging and Pay Gas with Bond Token
  • Bond API
    • Introduction
    • API Urls
    • Getting started with GraphQL
    • Authentication
      • Login
      • Refresh JWT
    • Profile
      • Create Profile
      • SetProfileMetadata
    • Connect
      • Connect a profile
      • Disconnect
  • Smart Contracts
    • BondHub
    • MerkelDistributor
    • TokenDeployer
    • SingleStakePoolDeployer
    • LzTokenDeployer
    • LzSingleStakePoolDeployer
  • Bond SDK
    • Bond JS SDK
      • Authenticate
      • Create Profile
      • Connect
  • Bond Nodes
    • Hardware Requirements
    • Set up and Deploy
    • Node Config (TOML)
    • Secrets Config (TOML)
    • Role-Based Access Control (RBAC)
  • References
    • Deployed Contracts
    • Github
Powered by GitBook
On this page
  1. Main Concepts

Gasless Mode

PreviousOff-chain OraclesNextCross Chain Messaging and Pay Gas with Bond Token

Last updated 1 year ago

Bond provides a gasless mode for projects. When a project operates in gasless mode, users' social activities such as creating a new profile, building relationships through follow and referral on the blockchain, and the resulting gas fees can be covered by the project creators. Additionally, users do not need to directly interact with smart contracts throughout the entire process.

Bond aims to lower the barrier for user participation in social activities and incentivise them to build their own social graph.

presents a standardised method for hashing and signing typed structured data, a cornerstone for enabling gasless transactions within the Bond. This approach replaces the often ambiguous raw hexadecimal blobs encountered in many blockchain interactions with a clear, user-friendly format. The clarity provided by typed data bolsters user confidence, ensuring they fully understand the transactions they're endorsing.

To utilise this method, users obtain the typed data from the Bond API. Access to this data is secured, requiring both the application's API key and the user's signature for validation. After thoroughly reviewing the transaction details, users endorse it by signing the typed data. Post-endorsement, users have two options: they can either directly communicate with the smart contract, bearing any gas fees, or opt for the withSig methods. Choosing the latter enables the transaction to be authenticated using the user's signature, while the execution and gas fees are overseen by a relay, typically a project's sponsor wallet.

This structure offers users a seamless way to engage in the Web 3.0 landscape without wrestling with gas fee logistics, promoting an efficient and user-centric journey.

EIP-712
Gasless Mode Flow