eth_sign

Returns an EIP-191 signature over the provided data.

https://api.1inch.com/web3/1
Supported on:
Ethereum

Parameters

Address (required)

Address
* string

Message (required)

Message
* string

Request

Request
object
jsonrpc
* string (Enum)
2.0
method
* string
params
array
items
any
oneOf[0]
string
oneOf[1]
string
id
* number
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/1', {
  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
1
2
"0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfdce3481f10bea41f45ba9f709d39ce8325427b57afcfc994cee1b"

Did you find what you need?