LedgerService/BatchGetTransactions - SUI
Example code for the LedgerService/BatchGetTransactions gRPC method. Complete guide on how to use LedgerService/BatchGetTransactions gRPC method in GetBlock Web3 documentation.
Request Fields
Field
Type
Required
Description
Request Example
# Clone the official proto files first (one-time setup):
# git clone https://github.com/MystenLabs/sui-apis.git && cd sui-apis
grpcurl \
-import-path proto \
-proto sui/rpc/v2/ledger_service.proto \
-H "x-grpc-web: 1" \
-d '{
"requests": [
{
"digest": "8WmKqcRkV5JZw8gEjGyzVxRYHnDvKmJsxLBp7t6vNqrA",
"read_mask": {
"paths": [
"digest",
"effects.status",
"timestamp_ms"
]
}
},
{
"digest": "Q9LkBpZHvJxMsnNzVxRYHnDvKmJsxLBp7t6vNqRAmK",
"read_mask": {
"paths": [
"digest",
"effects.status",
"timestamp_ms"
]
}
}
]
}' \
go.getblock.io:443/<ACCESS-TOKEN> \
sui.rpc.v2.LedgerService/BatchGetTransactionsResponse Example
Response Fields
Field
Type
Description
Use Cases
Error Handling
Status Code
Numeric
Cause
SDK Integration
Was this helpful?