curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTransfersForAddress",
"params": [
"7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
{
"sortOrder": "desc",
"limit": 100,
"direction": "all"
}
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
{
"confirmationStatus": "finalized",
"status": "succeeded",
"transfer": {
"signature": "2VPAJ2F4mqYc8D3PbUxuWVMHpHyfAzCTXEznVnFJrFvP7aansmELbmdcn6fmAByvP9q7Efw2HpbQUgbTy1nPmcHK",
"transferType": "spl",
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "25000000",
"decimals": 6,
"uiAmountString": "25",
"uiAmount": 25,
"blockTime": 1775359465,
"slot": 411108200,
"from": "SyfXr7gMNV788BJ7pojBLPYkUZRtegusx8R73cb13y7t",
"to": "DL4AxScsmxmFjJYaXb6v49jtAwsmKbDCwUx6UPVbGoa1",
"fromOwner": "5psKzBiHnWRmLMgP263KdEqjNQL36CqgkB6FSyodYv9H",
"toOwner": "7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"direction": "in"
}
},
{
"confirmationStatus": "finalized",
"status": "succeeded",
"transfer": {
"signature": "p9cJHp1uL1aLhVL8NBNVxxKgaeCVa4epNRRzBJ7fvTWXDxpCPDMvRGmkbruV1BdBtPbmgiGRaYRmfeBJFZoxwnMB",
"transferType": "sol",
"amount": "150000000",
"decimals": 9,
"uiAmountString": "0.15",
"uiAmount": 0.15,
"blockTime": 1775358902,
"slot": 411106789,
"from": "7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"to": "bohXtfJuh1ZuVjQht7A8x4Peqm2TRMaj8ALtTKdbgC5k",
"fromOwner": "7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"toOwner": "bohXtfJuh1ZuVjQht7A8x4Peqm2TRMaj8ALtTKdbgC5k",
"direction": "out"
}
}
],
"paginationToken": "eyJ2IjoyLCJiIjoxNzc1MzU4OTAyLCJ0IjoxODYxNTk4NzM2MDI0MDY0LCJpIjoyLCJuIjotMSwicCI6MjAyNjA0fQ"
}
}Historial y transferencias
Método RPC getTransfersForAddress
Lista todas las transferencias de SOL y tokens SPL que entran o salen de una wallet, ya analizadas en remitente, destinatario, propietarios, mint e importe. Parámetros y ejemplos de getTransfersForAddress.
POST
/
curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTransfersForAddress",
"params": [
"7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
{
"sortOrder": "desc",
"limit": 100,
"direction": "all"
}
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
{
"confirmationStatus": "finalized",
"status": "succeeded",
"transfer": {
"signature": "2VPAJ2F4mqYc8D3PbUxuWVMHpHyfAzCTXEznVnFJrFvP7aansmELbmdcn6fmAByvP9q7Efw2HpbQUgbTy1nPmcHK",
"transferType": "spl",
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "25000000",
"decimals": 6,
"uiAmountString": "25",
"uiAmount": 25,
"blockTime": 1775359465,
"slot": 411108200,
"from": "SyfXr7gMNV788BJ7pojBLPYkUZRtegusx8R73cb13y7t",
"to": "DL4AxScsmxmFjJYaXb6v49jtAwsmKbDCwUx6UPVbGoa1",
"fromOwner": "5psKzBiHnWRmLMgP263KdEqjNQL36CqgkB6FSyodYv9H",
"toOwner": "7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"direction": "in"
}
},
{
"confirmationStatus": "finalized",
"status": "succeeded",
"transfer": {
"signature": "p9cJHp1uL1aLhVL8NBNVxxKgaeCVa4epNRRzBJ7fvTWXDxpCPDMvRGmkbruV1BdBtPbmgiGRaYRmfeBJFZoxwnMB",
"transferType": "sol",
"amount": "150000000",
"decimals": 9,
"uiAmountString": "0.15",
"uiAmount": 0.15,
"blockTime": 1775358902,
"slot": 411106789,
"from": "7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"to": "bohXtfJuh1ZuVjQht7A8x4Peqm2TRMaj8ALtTKdbgC5k",
"fromOwner": "7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw",
"toOwner": "bohXtfJuh1ZuVjQht7A8x4Peqm2TRMaj8ALtTKdbgC5k",
"direction": "out"
}
}
],
"paginationToken": "eyJ2IjoyLCJiIjoxNzc1MzU4OTAyLCJ0IjoxODYxNTk4NzM2MDI0MDY0LCJpIjoyLCJuIjotMSwicCI6MjAyNjA0fQ"
}
}Obtén las transferencias de una wallet, ya analizadas, con getTransfersForAddress. Cada fila es un tramo de transferencia con su firma, remitente y destinatario, las wallets propietarias de ambos, mint, importes raw y UI, slot y block time. Incluye transferencias de SOL nativo, SPL Token y Token-2022.
- Filtros:
direction(in,outoall),mint, un rango deblockTimeen segundos Unix y un rango deslot. - Estado: por defecto solo se devuelven transferencias de transacciones correctas. Define
statuscomofailedoanypara incluir transferencias de transacciones fallidas, que no movieron nada on-chain. - Tamaño de página:
limitva de 1 a 1.000, 100 por defecto. - Paginación: pasa el
paginationTokendevuelto con la misma dirección, orden y filtros. Detente cuando una respuesta no incluyapaginationToken. Las páginas en el borde de un rango deslotpueden tener menos filas quelimitaunque se devuelva un token. - Configuración estricta: los campos de configuración desconocidos devuelven -32602, así que un filtro mal escrito nunca amplía la página.
Cuerpo
application/json
¿Esta página le ayudó?