The getEvents v2 request carries xdrInputFormat. The json value selects the JSON encoding for topic values inside filters. We cannot serve it today.
The term index keys each topic term on the canonical XDR byte encoding of the ScVal, so a JSON topic value must convert to those exact bytes. The repository has no converter for that direction. internal/xdr2json is cgo over a Rust staticlib that exposes only xdr_to_json, and the Go SDK's xdr.ScVal has no UnmarshalJSON.
Requirement: a JSON-to-XDR converter for ScVal, so getEvents v2 accepts xdrInputFormat: "json".
Parent issue: #774
Spec: https://github.com/orgs/stellar/discussions/1872
The getEvents v2 request carries
xdrInputFormat. Thejsonvalue selects the JSON encoding for topic values inside filters. We cannot serve it today.The term index keys each topic term on the canonical XDR byte encoding of the
ScVal, so a JSON topic value must convert to those exact bytes. The repository has no converter for that direction.internal/xdr2jsonis cgo over a Rust staticlib that exposes onlyxdr_to_json, and the Go SDK'sxdr.ScValhas noUnmarshalJSON.Requirement: a JSON-to-XDR converter for
ScVal, so getEvents v2 acceptsxdrInputFormat: "json".Parent issue: #774
Spec: https://github.com/orgs/stellar/discussions/1872