ledgerService_batchGetObjects - SUI
Example code for the ledgerService_batchGetObjects gRPC method. Complete guide on how to use ledgerService_batchGetObjects 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": [
{
"object_id": "0xc8ec1d6e3a7e9d2f5a8c3e7b1d4f9a6c2e5b8d3f7a1c4e9b2d4f6a8c0e2f4b6d",
"read_mask": {
"paths": [
"object_id",
"version",
"object_type"
]
}
},
{
"object_id": "0x1111111111111111111111111111111111111111111111111111111111111111",
"read_mask": {
"paths": [
"object_id",
"version",
"object_type"
]
}
}
]
}' \
go.getblock.io:443/<ACCESS-TOKEN> \
sui.rpc.v2.LedgerService/BatchGetObjectsResponse Example
Response Fields
Field
Type
Description
Use Cases
Error Handling
Status Code
Numeric
Cause
SDK Integration
Was this helpful?