Creates a new token on Spark using Spark Native Tokens for theDocumentation Index
Fetch the complete documentation index at: https://docs.spark.money/llms.txt
Use this file to discover all available pages before exploring further.
IssuerSparkWallet.
Method Signature
Parameters
Name of the token (eg: SparkCoin)
Token ticker (eg: SPARKC)
The precision the token supports (eg: 8 for BTC)
The maximum supply for this token (defaults to
0n for unlimited supply)Whether or not the Issuer can freeze this token
Optional extra metadata bytes to associate with the token (e.g., image data, JSON metadata)
When
true, returns both the transaction hash and token identifier as TokenCreationDetails. When false or omitted, returns only the transaction hash as a string (default: false)Returns
WhenreturnIdentifierForCreate is false or omitted:
Spark Transaction ID
returnIdentifierForCreate is true:
Object containing:
tokenIdentifier: Bech32m token identifier (e.g.,btkn1...)transactionHash: Spark Transaction ID