getSignaturesForAddress
All the specifications for getSignaturesForAddress RPC Method on Solana
Parameters required for this RPC call
curl https://rpc.shyft.to?api_key=YOUR-API-KEY -s -X \
POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSignaturesForAddress",
"params": [
"Vote111111111111111111111111111111111111111",
{
"commitment": "finalized",
"limit": 1
}
]
}
'import {
Connection,
PublicKey,
clusterApiUrl,
type SignaturesForAddressOptions,
} from "@solana/web3.js";
const connection = new Connection("https://rpc.shyft.to?api_key=YOUR-API-KEY", "confirmed");
let signaturesOptions: SignaturesForAddressOptions = {
limit: 1,
};
let address = new PublicKey("Vote111111111111111111111111111111111111111");
let signatures = await connection.getSignaturesForAddress(
address,
signaturesOptions,
);
console.log(signatures);Last updated