Skip to content

Instantly share code, notes, and snippets.

@justanwar
Last active October 28, 2025 09:05
Show Gist options
  • Select an option

  • Save justanwar/277083c2c604e10fb76d2aeaa76f26d9 to your computer and use it in GitHub Desktop.

Select an option

Save justanwar/277083c2c604e10fb76d2aeaa76f26d9 to your computer and use it in GitHub Desktop.
List of Spark RPCs for making/receiving payments

The main two: mint and spend

mintspark {"address":{amount,memo...}}

Mints (privatize/anonymise) transparent balance. The amount is added to the wallet's private balance. Target address can be own wallet's or external wallet's.

spendspark {"address":{amount,subtractfee...}, "address":{amount,memo,subtractfee...}}

Spends private balance (unshields, if to a transparent address. Mints, if to a Spark/private address).Target address can be own wallet's or external wallet's.

automintspark

Automatically mints all available transparent balance.

getallsparkaddresses

Lists all Spark addresses

getnewsparkaddress

Gets a new Spark address

getsparkaddressbalance

Outputs available, unconfirmed, and full balance of a Spark address

getsparkbalance

Outputs available, unconfirmed, and full balance for combined Spark balance (the whole wallet)

getsparkcoinaddr "txHash"

Returns the Spark address(es), memo, and amount for a particular txHash. txHash must be own wallet's.

getsparkdefaultaddress

Returns the wallet's default Spark address. This address stays the same regardless of the amount of time this command is executed.

listsparkmints

List all Spark mints (spent and unspent)

listsparkspends

List all Spark spends

listunspentsparkmints

Lists only unspent Spark mints

identifysparkcoins "txHash"

Identifies coins in transaction, and adds into own wallet if yours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment