IssuerSparkWallet.
Method Signature
Parameters
string
required
Name of the token (eg: SparkCoin)
string
required
Token ticker (eg: SPARKC)
number
required
The precision the token supports (eg: 8 for BTC)
bigint
The maximum supply for this token (defaults to
0n for unlimited supply)boolean
required
Whether or not the Issuer can freeze this token
Uint8Array
Optional extra metadata bytes to associate with the token (e.g., image data, JSON metadata)
boolean
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:
string
required
Spark Transaction ID
returnIdentifierForCreate is true:
TokenCreationDetails
required
Object containing:
tokenIdentifier: Bech32m token identifier (e.g.,btkn1...)transactionHash: Spark Transaction ID