gRPC
Endpoint:
apt-grpc.nownodes.ioAuthentication:
api-key: YOUR_API_KEYOfficial proto sources:
https://github.com/aptos-labs/aptos-corehttps://github.com/aptos-labs/aptos-indexer-processors-v2aptos.indexer.v1.RawData
GetTransactions
Description: Opens a server-side stream of Aptos transactions starting from the requested ledger version.
aptos.indexer.v1.RawData/GetTransactionsRequest:
{
"startingVersion": "0",
"transactionsCount": "100",
"batchSize": "100"
}grpcurl -insecure -H 'api-key: YOUR_API_KEY' -d '{"startingVersion":"0","transactionsCount":"100","batchSize":"100"}' 'apt-grpc.nownodes.io' aptos.indexer.v1.RawData/GetTransactionsResponse example:
{
"transactions": [
{
"version": "1",
"timestamp": {
"seconds": "1710000000",
"nanos": 0
},
"type": "TRANSACTION_TYPE_USER",
"info": {
"hash": "ASNFZ4mrze8="
}
}
],
"chainId": "1",
"processedRange": {
"firstVersion": "1",
"lastVersion": "1"
}
}The GetTransactions method is server-streaming and may return multiple response messages.
To open a continuous transaction stream, omit transactionsCount:
{
"startingVersion": "250000000",
"batchSize": "100"
}grpcurl -insecure -H 'api-key: YOUR_API_KEY' -d '{"startingVersion":"250000000","batchSize":"100"}' 'apt-grpc.nownodes.io' aptos.indexer.v1.RawData/GetTransactionsThe connection remains open until the client disconnects or the server terminates the stream.
aptos.indexer.v1.DataService
Ping
Description: Checks the availability of the Aptos transaction data service.
aptos.indexer.v1.DataService/PingRequest:
{
"knownLatestVersion": "0",
"pingLiveDataService": true
}grpcurl -insecure -H 'api-key: YOUR_API_KEY' -d '{"knownLatestVersion":"0","pingLiveDataService":true}' 'apt-grpc.nownodes.io' aptos.indexer.v1.DataService/PingLive data service response example:
{
"liveDataServiceInfo": {
"chainId": "1",
"timestamp": {
"seconds": "1710000000",
"nanos": 0
},
"knownLatestVersion": "250000000",
"minServableVersion": "249000000"
}
}Historical data service response example:
{
"historicalDataServiceInfo": {
"chainId": "1",
"timestamp": {
"seconds": "1710000000",
"nanos": 0
},
"knownLatestVersion": "250000000"
}
}The response contains either:
liveDataServiceInfoor:
historicalDataServiceInfoGetTransactions
Description: Opens a server-side stream of Aptos transactions starting from the requested ledger version.
aptos.indexer.v1.DataService/GetTransactionsRequest:
{
"startingVersion": "0",
"transactionsCount": "100",
"batchSize": "100"
}grpcurl -insecure -H 'api-key: YOUR_API_KEY' -d '{"startingVersion":"0","transactionsCount":"100","batchSize":"100"}' 'apt-grpc.nownodes.io' aptos.indexer.v1.DataService/GetTransactionsResponse example:
{
"transactions": [
{
"version": "1",
"timestamp": {
"seconds": "1710000000",
"nanos": 0
},
"type": "TRANSACTION_TYPE_USER",
"info": {
"hash": "ASNFZ4mrze8="
}
}
],
"chainId": "1",
"processedRange": {
"firstVersion": "1",
"lastVersion": "1"
}
}The GetTransactions method is server-streaming and may return multiple response messages.
To open a continuous transaction stream, omit transactionsCount:
{
"startingVersion": "250000000",
"batchSize": "100"
}grpcurl -insecure -H 'api-key: YOUR_API_KEY' -d '{"startingVersion":"250000000","batchSize":"100"}' 'apt-grpc.nownodes.io' aptos.indexer.v1.DataService/GetTransactionsThe connection remains open until the client disconnects or the server terminates the stream.