Expand description
Type definitions for the Titan API.
§Features
enum-other- Adds an additionalOthervalues to most enums to allow for handling unkonwn Client and Server message types. Adds a dependency onrmpv.pubkey-str- (default) Enable conversions to/from base58 strings forPubkeys.pubkey-fromstr-const- (default) Enable compile-time base58 string toPubkeyconversion.serde- (default) Enableserdeserialization/deserialization for types.serde-pubkey-human-base58- (default) 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- (default) 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.solana-pubkey-convert-v2- Enables conversion ofPubkeyto and from the V2 Solana SDK type.solana-pubkey-convert-v3- Enables conversion ofPubkeyto and from the V3 Solana SDK type. Note that depending on version, this is equivalent to eithersolana-address-convert-v1orsolana-address-convert-v2assolana-pubkey>=3simply re-exports thesolana-addresstype.solana-instruction-convert-v2- Enable conversion ofInstructionto and from the V2 Solana SDK types (enablessolana-pubkey-convert-v2).solana-address-convert-v1- Enable conversion ofPubkeyto and from the V1.0 of thesolana-addresscrate, as well as V3 of thesolana-pubkey.solana-address-convert-v2- Enable conversion ofPubkeyto and from the V2 of thesolana-addresscrate. crate (which re-exportssolana_address::AddressasPubkey).solana-instruction-convert-v3- Enable conversion ofInstructionto and from the V3 Solana SDK types (enablessolana-address-convert-v1).solana-alt-account-convert-v2- Enable conversion of theAddressLookupTableAccountto/from the corresponding type insolana-messageV2.solana-alt-account-convert-v3- Enable conversion of theAddressLookupTableAccountto/from the corresponding type insolana-messageV3.solana-alt-account-convert-v4- Enable conversion of theAddressLookupTableAccountto/from the corresponding type insolana-messageV4.
§Important note regarding solana-address
If using features to convert between Solana V3 or higher types, it is highly recommended
to also specify the solana-address-convert feature that matches the version you are using.
This is because Anza published solana-address@v1.1 which depends on solana-address@v2 and
re-exports that type, so the solana-address-convert-v1 has feature has changed to only convert
between the solana-address@1.0.0 type exactly. Unless you are using that exact version of
solana-address, please use the solana-address-convert-v2 feature instead.
Modules§
Macros§
- pubkey
- Convenient macro to define a static public key.