Skip to main content
Creates a Spark invoice for receiving a tokens payment on Spark.

Method Signature

Parameters

Bech32mTokenIdentifier
The Bech32m token identifier (e.g., btkn1...)
bigint
The amount of tokens to receive. Max: 2^128 - 1.
string
Optional memo/description for the payment
SparkAddressFormat
Optional Spark address of the expected sender
Date
Optional expiry time for the invoice

Returns

SparkAddressFormat
required
A Spark address/invoice that can be paid by another Spark wallet

Example