Venly API
Search…
Signatures
Sign data using your wallet
🧙 The signatures endpoint supports the EIP-712 standard, Ethereum typed structured data hashing and signing. This EIP aims to improve the usability of off-chain message signing for use on-chain.
post
https://api.arkane.network
/api/signatures
Sign a message (arbitrary data)

Example

Request

1
POST : https://api.arkane.network/api/signatures
Copied!

Request Body

1
{
2
"pincode" : "1234",
3
"signatureRequest" :
4
{
5
"type" : "MESSAGE",
6
"secretType" : "ETHEREUM",
7
"walletId" : "1def2753-a428-4fd2-9993-fc06917897c6",
8
"data" : "I agree with terms and conditions"
9
}
10
}
Copied!

Response

1
{
2
"type" : "HEX_SIGNATURE",
3
"r" : "0xb91467e570a6466aa9e9876cbcd013baba02900b8979d43fe208a4a4f339f5fd",
4
"s" : "0x6007e74cd82e037b800186422fc2da167c747ef045e5d18a5f5d4300f8e1a029",
5
"v" : "0x1c",
6
"signature" : "0xb91467e570a6466aa9e9876cbcd013baba02900b8979d43fe208a4a4f339f5fd6007e74cd82e037b800186422fc2da167c747ef045e5d18a5f5d4300f8e1a0291c"
7
}
Copied!
post
https://api.arkane.network
/api/signatures
Sign an EIP712 message

Example

Request

1
POST : https://api.arkane.network/api/signatures
Copied!

Request Body

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

Response

1
{
2
"success": true,
3
"result": {
4
"type": "HEX_SIGNATURE",
5
"r": "0xc3708e09824e67af571b0c4d2d9a98c4ec5eb2831946674da7db5d6bc1a35635",
6
"s": "0x53174e2c71cdac33b447974f54cddcf63bd2644106edad6ee53665c032f370b1",
7
"v": "0x1b",
8
"signature": "0xc3708e09824e67af571b0c4d2d9a98c4ec5eb2831946674da7db5d6bc1a3563553174e2c71cdac33b447974f54cddcf63bd2644106edad6ee53665c032f370b11b"
9
}
10
}
Copied!
Last modified 1mo ago