# ReverseLookupName - Resolve a Sui Address to SuiNS

Resolve a 32-byte Sui address to its configured reverse SuiNS record through Dwellir's gRPC endpoint.

## Method Signature

- **Service:** `sui.rpc.v2.NameService`
- **Method:** `ReverseLookupName`
- **Type:** Unary RPC

## Request Parameters

- `address` (`string, required`): Sui address whose configured reverse SuiNS record is requested.

## Request Example

```bash
grpcurl \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "address": "SUI_ADDRESS"
}' \
  api-sui-mainnet-full.n.dwellir.com:443 \
  sui.rpc.v2.NameService/ReverseLookupName
```

## Response Fields

- `record` (`NameRecord, optional`): Forward or reverse SuiNS record.

## Successful Response

```protobuf
message ReverseLookupNameResponse {
  optional NameRecord record = 1;
}
```

## Error Responses

### Record not found

- Code: `NOT_FOUND`
- Description: No name or reverse record exists for the requested value.

## Usage notes

Replace `SUI_ADDRESS` with the `targetAddress` from a [LookupName](https://www.dwellir.com/docs/sui/grpc/name/lookup-name) response for a name with a configured reverse record. An address can return `NOT_FOUND`.

## Related resources

- [Sui gRPC overview](https://www.dwellir.com/docs/sui/grpc-overview)
- [grpcurl setup](https://www.dwellir.com/docs/sui/grpc-setup-grpcurl)
