Biconomy Gasless SDK (EOA)
DashboardMediumWebsite
  • 🚀Getting Started
  • Introduction
    • 🤘Why Biconomy?
    • 🙂How we simplify transactions
  • Products
    • 💸Gasless Transactions
      • Choose An Approach to Enable Gasless
        • Standard EIP 2771 Approach
          • 1. Register Artifacts on the Dashboard
          • 2. Code Changes
            • Using SDK
            • Using API
        • Custom Implementation Approach
          • 1. Register Artifacts on the Dashboard
          • 2. Code Changes
            • Using SDK
            • Using API
        • Smart Contract Wallet Approach
          • Gnosis
        • Network Agnostic Transactions
          • EIP-2771 Approach
          • Custom Approach
      • Conditional Whitelisting
      • Gasless SDK (EOA) 3
      • Networks Supported
    • ↔️Hyphen - Instant Cross-Chain Transfers
      • SDK
        • DepositManager
        • TransferManager
        • TokenManager
      • APIs
      • Helper Methods
      • Migrating from Hyphen V1
      • Contract Addresses
      • Hyphen Widget
  • Guides
    • 💻Dashboard
      • DApp Statistics
    • ⛽Gas Tank Deposits
      • Via Dashboard
      • Via Smart Contract
  • api
    • 🔧Native Meta Transaction
      • Get Retried Hashes
    • 🌎Dashboard APIs
    • ⚪Whitelist API
      • Whitelist Destination Address
      • Whitelist Proxy Contracts
    • 〰️ Check Limits
    • 💿Biconomy Data API
      • 👨‍🚀Unique User Data
      • 🧑‍🔧Per User Limits Data
      • ⛽Gas Tank Balance Data
  • SDK
    • 📙Gasless SDK (EOA)
      • Configuration
  • Tutorials
    • 🔰Native Meta Transactions
      • How To Build Your First DApp
        • Write Your First Smart Contract
        • Initialize Web3 on Client Side
        • Executing First Blockchain Transaction
      • Enable Native Meta Transactions
        • Smart Contract
          • Describe Your Structs
          • Declare Your Variables
          • Modify Respective Function
        • Client Side
          • Design Your JSON structure
          • Design Your Domain Separator
          • Design Data Types
          • Define Data To Sign
          • Generate Signatures
      • Integrate Biconomy
        • Register On Dashboard
        • Integrate Gasless SDK (EOA)
      • Summary
  • BICO Staking
    • 🪁Safety Module
  • Get in touch
    • 👥Contact Us
  • Misc
    • 🧩Projects on Biconomy
    • 🌐Supported Networks
    • 📫Contract Addresses
    • ✔︎ Smart Contracts Audit
    • ❓FAQs
Powered by GitBook
On this page
  • Register Smart Contracts
  • Select Smart Contract Methods

Was this helpful?

  1. Products
  2. Gasless Transactions
  3. Choose An Approach to Enable Gasless
  4. Custom Implementation Approach

1. Register Artifacts on the Dashboard

Changes to be done on the dashboard for custom gasless transactions

PreviousCustom Implementation ApproachNext2. Code Changes

Last updated 2 years ago

Was this helpful?

Register Smart Contracts

if you don't know how to register a dApp on the dashboard.

After having your dApp registered, on the “Add Smart Contract” page, enter the contract name, address and ABI, select Meta Transaction Type as “Custom” then click “Add”.

The ABI is the description of the contract interface. It contains no code and cannot be run by itself. Example of an ABI of a test contract:

pragma solidity ^0.5.0;

contract TestContract {
  constructor() public { b = hex"12345678901234567890123456789012"; }
  event Event(uint indexed a, bytes32 b);
  event Event2(uint indexed a, bytes32 b);
  function foo(uint a) public { emit Event(a, b); }
  bytes32 b;
}
[
  {
    "type": "event",
    "inputs": [
      {
        "name": "a",
        "type": "uint256",
        "indexed": true
      },
      {
        "name": "b",
        "type": "bytes32",
        "indexed": false
      }
    ],
    "name": "Event"
  },
  {
    "type": "event",
    "inputs": [
      {
        "name": "a",
        "type": "uint256",
        "indexed": true
      },
      {
        "name": "b",
        "type": "bytes32",
        "indexed": false
      }
    ],
    "name": "Event2"
  },
  {
    "type": "function",
    "inputs": [
      {
        "name": "a",
        "type": "uint256"
      }
    ],
    "name": "foo",
    "outputs": []
  }
]

Select Smart Contract Methods

After uploading your smart contract, the next step is to select the smart contract method which needs to be called from client side. Now here instead of selecting your smart contract methods, you need to select the ExecuteMetaTransaction method inherited from Biconomy Contracts because that's the method we'll be calling from the client side.

ExecuteMetaTransaction has functionSignature as a parameter so any method you need to make gasless can be passed as data here. If you have inherited EIP712MetaTransaction specs, the only method you will register is executeMetaTransaction.

If you have methods in your smart contract that already supports native meta transaction via user signature as parameters or if they do not depend on msg.sender, you can directly select those methods here and call them from the client side. eg. DAI or USDC permit method.

After adding the smart contract and methods on the dashboard, the next step is to integrate Biconomy SDK or API in the client side code.

Checkout

💸
Checkout this section
how to add smart contract methods on dashboard here.