eth_sign
Returns an EIP-191 signature over the provided data.
https://api.1inch.com/web3/43114
Supported on: Avalanche
Parameters
Address (required)
Address
* string Message (required)
Message
* string Request
Request
object jsonrpc
* string (Enum)JSON-RPC version
2.0
method
* string The method to call
params
array Method parameters
items
any oneOf[0]
string oneOf[1]
string id
* number Request ID
JavaScript
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/43114', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'eth_sign',
params: ['string', 'string'],
id: 1,
}),
});
const data = await response.json();
console.log(data);
Response
Signature
Signature
string JSON
Copy
1
2
"0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfdce3481f10bea41f45ba9f709d39ce8325427b57afcfc994cee1b"