@dynamic-labs/spark
package, enabling seamless integration with Spark network wallets including Magic Eden and other Bitcoin-based wallets.
Network | Chain ID | Description | Block Explorer |
---|---|---|---|
Mainnet | 301 | Production network | mempool.space |
Note: Currently only mainnet is supported. Testnet, signet, and regtest support may be added in future versions.
isSparkWallet
helper method for that. That way, TypeScript will know which methods etc. are available to you.
wallet.address
property:
sendBalance
or transferBitcoin
method:
transferTokens
method:
SparkWalletConnector
class:
sendBalance(params)
- Send Bitcoin (alias for transferBitcoin)transferBitcoin(params)
- Send Bitcoin to a Spark addresstransferTokens(params)
- Send tokens to a Spark addresssignMessage(message)
- Sign a message for authenticationsignMessageWithTaproot(message)
- Sign a message with Taproot supportSparkConnectionResult
- Result from wallet connectionSparkAddressResult
- Result from address retrievalSparkSignMessageRequest
- Message signing request optionsSparkSignatureResult
- Result from message signing