chain_type: 'spark'
. Learn more about creating wallets here.
sprt1pgss...
).
MAINNET
: Production Bitcoin networkREGTEST
: Test network for developmentMAINNET
address is automatically returned. To get the REGTEST
address, you can use the returned public key and the encodeSparkAddress
method from the Spark SDK.On subsequent wallet requests, your request will need to include the network you want to take the operation on.transfer
endpoint. The amount is specified in satoshis.
getBalance
endpoint to retrieve your wallet balance and automatically claim any pending transfers.
transfer
and getBalance
, but Privy supports many Spark wallet methods including:
transfer
- Transfer satoshis from a Spark wallet to another Spark addressgetBalance
- Retrieve wallet balance and token holdings, automatically claims pending transferstransferTokens
- Transfer Spark tokens to another Spark addresscreateLightningInvoice
- Create a Lightning invoice to receive funds via Lightning NetworkpayLightningInvoice
- Pay a Lightning Network invoicegetStaticDepositAddress
- Get a static Bitcoin address for depositsgetClaimStaticDepositQuote
- Get a quote for claiming a static depositclaimStaticDeposit
- Claim funds from a static Bitcoin deposit