Titan API Types
Contains type definitions for the wire protocol used by the Titan API.
Features
The following features are enabled by default:
pubkey-str: Enables conversions ofPubkeyto/from string viafive8.pubkey-fromstr-const: Enables runtime parsing of Base58 strings toPubkeyviafive8_const, and enables thepubkey!macro.serde: Enablesserdeserialization for all types.serde-pubkey-human-base58: Adds special handling toserde(de)serialization to encode pubkeys as base58 strings instead of arrays when the format defines itself as human readable. Binary formats will use more efficient encoding.serde-instruction-human-base64: Adds special handling toserde(de)serialization to encode instruction data as base64 strings instead of arrays when the format defines itself as human readable. Binary formats will use more efficient encoding.
The following optional features are also available:
enum-other: Adds an additionalOthervalue to most enums to allow for handling unknown Client and Server message types. Adds a dependency onrmpv.solana-pubkey-convert-v2: Adds conversions to/from thePubkeytype in version 2 of thesolana_pubkeycrate.solana-instruction-convert-v2: Adds conversions to/from theInstructionandAccountMetatypes in version 2 of thesolana_instructioncrate. Enablessolana-pubkey-convert-v2.solana-pubkey-convert-v3: Adds conversions to/from thePubkeytype in version 3 of thesolana_pubkeycrate.solana-instruction-convert-v3: Adds conversions to/from theInstructionandAccountMetatypes in version 3 of thesolana_instructioncrate. Enablessolana-pubkey-convert-v2.solana-address-convert-v1: Adds conversions to/from theAddresstype in v1 of thesolana_addresscrate.solana-address-convert-v2: Adds conversions to/from theAddresstype in v2 of thesolana_addresscrate.solana-alt-account-convert-v2: Adds conversions to/from theAddressLookupTableAccounttype in v2 of thesolana-messagecrate.solana-alt-account-convert-v3: Adds conversions to/from theAddressLookupTableAccounttype in v3 of thesolana-messagecrate.solana-alt-account-convert-v4: Adds conversions to/from theAddressLookupTableAccounttype in v4 of thesolana-messagecrate.