encode_data
Documentation for eth_defi.eip_712.encode_data function.
- encode_data(primary_type, data, types)[source]
Encode structured data as per Ethereum’s signTypeData_v4.
https://docs.metamask.io/guide/signing-data.html#sign-typed-data-v4
This code is ported from the Javascript “eth-sig-util” package.
- Parameters
primary_type (str) –