Eip712SignRequestDto

Signature

1
{
2
secretType! : SecretType,
3
walletId! : string,
4
data! : any
5
}
Copied!

Parameters

Parameter
Required
Type
Description
walletId
True
String
ID of the wallet one wants to sign with.
secretType
True
​SecretType​
Chain the transaction will be executed on.
data
True
JSON
String(containing the JSON)
Should contain valid JSON (keys should be quoted)

Example

1
{
2
"secretType" : "ETHEREUM",
3
"walletId" : "1def2753-a428-4fd2-9993-fc06917897c6",
4
"data" : {
5
"types":{
6
"EIP712Domain":[
7
{
8
"name":"name",
9
"type":"string"
10
},
11
{
12
"name":"version",
13
"type":"string"
14
},
15
{
16
"name":"chainId",
17
"type":"uint256"
18
},
19
{
20
"name":"verifyingContract",
21
"type":"address"
22
},
23
{
24
"name":"salt",
25
"type":"bytes32"
26
}
27
],
28
"Bid":[
29
{
30
"name":"amount",
31
"type":"uint256"
32
},
33
{
34
"name":"bidder",
35
"type":"Identity"
36
}
37
],
38
"Identity":[
39
{
40
"name":"userId",
41
"type":"uint256"
42
},
43
{
44
"name":"wallet",
45
"type":"address"
46
}
47
]
48
},
49
"domain":{
50
"name":"My amazing dApp",
51
"version":"2",
52
"chainId":1,
53
"verifyingContract":"0x1C56346CD2A2Bf3202F771f50d3D14a367B48070",
54
"salt":"0xf2d857f4a3edcb9b78b4d503bfe733db1e3f6cdc2b7971ee739626c97e86a558"
55
},
56
"primaryType":"Bid",
57
"message":{
58
"amount":100,
59
"bidder":{
60
"userId":323,
61
"wallet":"0x3333333333333333333333333333333333333333"
62
}
63
}
64
}
65
}
Copied!

Function Types

​