GET /record-key-v2/:domain/:record
Derive a V2 SNS record-account public key without making an RPC request.
Request
GET /record-key-v2/:domain/:record
Path parameters
domain
Required. A TLD-less top-level domain or one-level subdomain. The route trims whitespace, converts the value to lowercase, and derives the corresponding .sns record.
record
Required. One exact supported record value from GET /types/record.
Response
A successful request returns 200 OK with the derived base58 V2 record-account public key:
type RecordKeyV2Response = {
s: "ok";
result: string;
};
Example
curl "https://sdk-proxy-v2.sns.id/record-key-v2/bonfida/SOL"
{
"s": "ok",
"result": "<RECORD_ACCOUNT_PUBLIC_KEY>"
}
Errors
| Status | result | When |
|---|---|---|
400 | Invalid input | The domain shape or exact record value is invalid. |
500 | Internal error | Derivation fails for another unmapped reason. |