getSignaturesForAddress
Returns signatures for confirmed transactions that include the given address in their accountKeys list.
https://api.1inch.com/web3/501
Supported on: Solana
Request
Request
object jsonrpc
* string (Enum)JSON-RPC version
2.0
method
* string The method to call
params
array Method parameters
items
any 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/501', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'getSignaturesForAddress',
params: [],
id: 1,
}),
});
const data = await response.json();
console.log(data);
Response
Signatures For Address Response
Signatures For Address Response
array items
object signature
* string Transaction signature as base-58 encoded string
slot
* integer Slot that contains a block with the transaction
err
* any oneOf[0]
null oneOf[1]
object Error details if transaction failed
memo
* any oneOf[0]
null oneOf[1]
string Memo associated with the transaction
blockTime
* any oneOf[0]
null oneOf[1]
integer Estimated production time as Unix timestamp
confirmationStatus
* any oneOf[0]
null oneOf[1]
string The confirmation status of the transaction
additionalProperties
none JSON
Copy
1
2
3
4
5
6
7
8
9
10
11
[
{
"signature": "5h6xBEauJ3PK6SWCZ1PGjBvj8vDdWG3KpwATGy1ARAXFSDwt8GFXM7W5Ncn16wmqokgpiKRLuS83KUxyZyv2sUYv",
"slot": 114,
"err": null,
"memo": null,
"blockTime": null,
"confirmationStatus": "finalized"
}
]