Nsure.Network
Search…
Purchase Signature
https://api.nsure.network/v1/sign
post
https://api.nsure.network/v1
/sign
Sign data example
1
{
2
domain: {
3
name: 'sign',
4
chainId: 1,
5
},
6
message: {
7
account:"0x....000", // user addr
8
currencyType:0, // Payment asset type
9
amount: "0", // Insured ETH amount (unit: wei)
10
period:30, // Insurance period (unit: day, 30~365)
11
product:0, //Insurance product id
12
nonce:"0", // nonce
13
deadline:1607680924304
14
},
15
primaryType: 'sign',
16
types: {
17
EIP712Domain: [
18
{name: 'name', type: 'string'},
19
{name: 'chainId', type: 'uint256'},
20
],
21
sign: [
22
{
23
name: 'product',
24
type: 'uint256'
25
},
26
{
27
name: 'account',
28
type: 'address'
29
},
30
{
31
name: 'amount',
32
type: 'uint256'
33
},
34
{
35
name: 'currencyType',
36
type: 'uint256'
37
},
38
{
39
name: 'period',
40
type: 'uint256'
41
},
42
{
43
name: 'nonce',
44
type: 'uint256'
45
},
46
{
47
name: 'deadline',
48
type: 'uint256'
49
}
50
51
],
52
53
}
54
}
Copied!
Last modified 6mo ago
Copy link