Step-by-step guide for integrating your Spark wallet with Dynamic
ISparkProvider
interface, your wallet will be compatible with Dynamic’s Spark network support.
Implement the ISparkProvider Interface
ISparkProvider
interface. This interface defines all the methods Dynamic expects from a Spark wallet.connect()
- Establishes connection and returns the public keydisconnect()
- Disconnects from the walletgetAddress()
- Retrieves the current wallet addresssignMessage()
- Signs messages for authenticationsignMessageWithTaproot()
- Signs messages using Taproot protocoltransferBitcoin()
- Sends Bitcoin to other Spark addressestransferTokens()
- Transfers tokens between Spark addressesrequest()
- Handles generic RPC requestsCreate a Custom Wallet Connector
SparkWalletConnector
and implement the required overrides:Test Your Integration
Submit Your Connector
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.
ISparkProvider
interface specification: