deploy_token

Function deploy_token 

Source
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 of SolanaAgentKit.
  • 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.