pub async fn deploy_token(
agent: &SolanaAgentKit,
name: String,
uri: String,
symbol: String,
decimals: u8,
initial_supply: Option<u64>,
) -> Result<DeployedData, ClientError>Expand description
Deploys a new SPL token.
§Parameters
agent: An instance ofSolanaAgentKit.name: Name of the token.uri: URI for the token metadata.symbol: Symbol of the token.decimals: Number of decimals for the token (default: 9).initial_supply: Initial supply to mint (optional).
§Returns
An object containing the token mint address.