Web3 & MetaMask - Bubble plugin
Get PluginAll our plugins
  • Overview
  • Quick Start Example
  • Elements details
    • Web3 & MetaMask
      • Connect To MetaMask
      • Disconnect MetaMask
      • Send token With MetaMask
      • Get Balance of a Token
      • Get Balance of Multiple Tokens
      • Get Token Symbol
      • Sign
      • Check signature
      • Sign Typed Data
      • Check signature-Typed Data
      • Smart Contract - Read
        • Example - CAKE/BUSD rate on Pancaksewap
      • Smart Contract - Write
        • Example - Write a function
      • Trigger Switch Chain
      • Approve - Set Allowance
      • Revoke Allowance
      • Deploy Contract
      • Add Chain to MetaMask
      • Get NFT Metadata
      • Check NFT Balance
      • Smart Contract - Read
      • Smart Contract - Write
    • Web3 Utils
      • Get Transaction confirmations
      • Get Transaction Details
      • To Wei
      • From Wei
      • Add Token to MetaMask
      • Get ENS data
      • Get ENS Domain from Address
  • Use with other Wallets & Plugins
  • Sign up a user with signature
  • How to use on Mobile
Powered by GitBook
On this page
  • Parameters
  • Events
  • States
  • Demo
  1. Elements details
  2. Web3 & MetaMask

Sign Typed Data

Using the method called signTypedData_v4

PreviousCheck signatureNextCheck signature-Typed Data

Last updated 2 years ago

The method signTypedData_v4 currently represents the latest version of the If you don't know what it is then most likely you don't need it, in that case, we recommend using the simpler action.

A detailed documentation about it can be found in the official .

Parameters

Parameter name
Type
Description

Chain ID

Number

Name

Text

This is primarily for UX(User Experience) purposes. For example, as a user, you're using an Ether Mail app and a dialog comes up for cryptokitties exchange, this would arouse suspicion due to what the name is on the signature.

Verifying Contract

Text

This is an extra layer of assurance. Even if two developers end up creating an app with the same name, they will never have the same contract address.

Version

Text

This tell you the current version of the domain object.

Message

Text

JSON object in text format. Completely open to what you would like the structure of it to be.

Primary Type

Text

Refers to the keys of the types from the next parameter field

Types

Text

Events

Event name
Description

Signed

User canceled action

Triggered if the user rejects signing

States

State name
Type
Description

Sign: Signature

Text

Signature is in same format as from regular Sign action

This particular demo page contains many features combined in one page, see lower on the page the section "Sign data" and use the button "Sign Typed Data" to see how it looks.

The EIP-155 chain id. Prevents a signature meant for one network, such as a testnet, from working on another, such as the mainnet. See all chains IDs here:

Refers to the keys of the types object. See for details.

EIP-712 spec
Sign
MetaMask documentation
Demo
https://chainlist.org/
MetaMask documentation