Expand description
What frontends show for a spot token or a HIP-3 perp: the text setTokenAnnotation and
setPerpAnnotation carry, checked against the lengths the docs give. The venue counts those
lengths in UTF-8 bytes, not characters: testnet refused a Chinese display name of 6
characters and 18 bytes, and took one of 2 characters and 6 bytes.
Structs§
- Annotation
- A token’s or perp’s annotation: a category, a description, a display name
frontends show instead of the listed name (
Noneto keep the listed name) and up to two keywords searches match against.
Constants§
- MAX_
CATEGORY_ LEN - The longest category, in bytes.
- MAX_
DESCRIPTION_ LEN - The longest description, in bytes.
- MAX_
DISPLAY_ NAME_ LEN - The longest display name, in bytes.
- MAX_
KEYWORDS - The most keywords an annotation takes.
- MAX_
KEYWORD_ LEN - The longest keyword, in bytes.