pub struct TokenMetadata {Show 20 fields
pub address: String,
pub chain: String,
pub coingecko_coin_id: Option<String>,
pub decimals: String,
pub description: Option<String>,
pub dev_last_token_created_at: Option<String>,
pub dev_total_tokens: Option<String>,
pub extra: Option<TokenExtra>,
pub image_url: Option<String>,
pub metadata_address: Option<String>,
pub name: String,
pub social_medias: Option<TokenSocialMedias>,
pub symbol: String,
pub token_created_at: Option<i64>,
pub token_created_block_height: Option<String>,
pub token_created_slot: Option<String>,
pub token_created_tx_signature: Option<String>,
pub token_creators: Vec<TokenCreator>,
pub updated_at: Option<String>,
pub uri: Option<String>,
}Expand description
Token metadata
JSON schema
{
"description": "Token metadata",
"type": "object",
"required": [
"address",
"chain",
"decimals",
"name",
"symbol"
],
"properties": {
"address": {
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"chain": {
"examples": [
"sol"
],
"type": "string"
},
"coingeckoCoinId": {
"examples": [
"usd-coin"
],
"type": "string"
},
"decimals": {
"examples": [
"9"
],
"type": "string"
},
"description": {
"examples": [
"USDC is a stablecoin pegged to the US dollar"
],
"type": "string"
},
"devLastTokenCreatedAt": {
"examples": [
"2025-12-03T09:23:34.000Z"
],
"type": "string"
},
"devTotalTokens": {
"examples": [
"163"
],
"type": "string"
},
"extra": {
"$ref": "#/components/schemas/TokenExtra"
},
"imageUrl": {
"examples": [
"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png"
],
"type": "string"
},
"metadataAddress": {
"examples": [
"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
],
"type": "string"
},
"name": {
"examples": [
"USD Coin"
],
"type": "string"
},
"socialMedias": {
"$ref": "#/components/schemas/TokenSocialMedias"
},
"symbol": {
"examples": [
"USDC"
],
"type": "string"
},
"tokenCreatedAt": {
"examples": [
1710417600000
],
"type": "integer",
"format": "int64"
},
"tokenCreatedBlockHeight": {
"examples": [
"220000000"
],
"type": "string"
},
"tokenCreatedSlot": {
"examples": [
"230000000"
],
"type": "string"
},
"tokenCreatedTxSignature": {
"examples": [
"5dJ1BxPiFT7w7aBdkxNy2jopGZnZoLwRwS8e9GkEXrVz..."
],
"type": "string"
},
"tokenCreators": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TokenCreator"
}
},
"updatedAt": {
"examples": [
"2026-02-09T08:05:12.345Z"
],
"type": "string"
},
"uri": {
"examples": [
"https://arweave.net/abc123"
],
"type": "string"
}
}
}Fields§
§address: String§chain: String§coingecko_coin_id: Option<String>§decimals: String§description: Option<String>§dev_last_token_created_at: Option<String>§dev_total_tokens: Option<String>§extra: Option<TokenExtra>§image_url: Option<String>§metadata_address: Option<String>§name: String§symbol: String§token_created_at: Option<i64>§token_created_block_height: Option<String>§token_created_slot: Option<String>§token_created_tx_signature: Option<String>§token_creators: Vec<TokenCreator>§updated_at: Option<String>§uri: Option<String>Implementations§
Source§impl TokenMetadata
impl TokenMetadata
pub fn builder() -> TokenMetadata
Trait Implementations§
Source§impl Clone for TokenMetadata
impl Clone for TokenMetadata
Source§fn clone(&self) -> TokenMetadata
fn clone(&self) -> TokenMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenMetadata
impl Debug for TokenMetadata
Source§impl<'de> Deserialize<'de> for TokenMetadata
impl<'de> Deserialize<'de> for TokenMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&TokenMetadata> for TokenMetadata
impl From<&TokenMetadata> for TokenMetadata
Source§fn from(value: &TokenMetadata) -> Self
fn from(value: &TokenMetadata) -> Self
Converts to this type from the input type.
Source§impl From<TokenMetadata> for TokenMetadata
impl From<TokenMetadata> for TokenMetadata
Source§fn from(value: TokenMetadata) -> Self
fn from(value: TokenMetadata) -> Self
Converts to this type from the input type.
Source§impl Serialize for TokenMetadata
impl Serialize for TokenMetadata
Source§impl TryFrom<TokenMetadata> for TokenMetadata
impl TryFrom<TokenMetadata> for TokenMetadata
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TokenMetadata) -> Result<Self, ConversionError>
fn try_from(value: TokenMetadata) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TokenMetadata
impl RefUnwindSafe for TokenMetadata
impl Send for TokenMetadata
impl Sync for TokenMetadata
impl Unpin for TokenMetadata
impl UnsafeUnpin for TokenMetadata
impl UnwindSafe for TokenMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more