Playground
This page collects wallet method examples. Fields that do not depend on on-chain resources are prefilled. Collection, NFT, FT, and PoolNFT contract transaction IDs stay empty and must be replaced with real values from the active wallet network, preventing synthetic IDs from reaching the extension. Every parameterized example includes Reset Template and Clear Input controls. Code previews are collapsed by default and can be expanded or copied on demand. Connect Turing Wallet from the wallet control in the top navigation first. Non-Merge transaction examples request the business txraw by default; dedicated Merge examples always broadcast and return txid.
Basic Methods
connect
Live Example
Turing.connect()
isConnected
Live Example
Turing.isConnected()
getAddress
Live Example
Turing.getAddress()
getInfo
Live Example
Turing.getInfo()
getNetwork
Live Example
Turing.getNetwork()
getPubKey
Live Example
Turing.getPubKey()
disconnect
Live Example
Turing.disconnect()
Messages and Encryption
These non-transaction signing and encryption methods do not broadcast transactions, but they still request wallet approval. Never enter private keys, seed phrases, or other sensitive credentials in these examples.
signMessage
Live Example
Turing.signMessage()
encrypt
Live Example
Turing.encrypt()
decrypt
Live Example
Turing.decrypt()
Replace the default template with the encryptedMessage returned by Turing.encrypt().
Transactions
Non-Merge examples request the business txraw by default, while dedicated Merge examples always broadcast and return txid. Complex contract operations such as NFT, FT, PoolNFT, and Stablecoin provide synchronized Form and JSON views. Common transfers with fewer fields—P2PKH, EVM, and BTC—keep compact forms, while raw signing and batch requests use JSON. Handle multi-raw business operations in order. Every chain-specific method, including sign-only requests, requires the active wallet network to match the target chain; Run remains disabled on a mismatch. When broadcasting is enabled, Run first opens a transaction-summary confirmation dialog. All amounts use the chain or token's smallest unit. The docs do not estimate fees, so review the final fee again in the wallet confirmation.
TBC P2PKH
Live Example
Turing.sendTransaction() / P2PKH
The active wallet network is Unknown. This method requires TBC. Switch networks and try again.
NFT
Covers collection creation, NFT creation, and NFT transfers.
Live Example
Turing.sendTransaction() / NFT
The active wallet network is Unknown. This method requires TBC. Switch networks and try again.
Form and JSON stay in sync. Use real transaction IDs from the current network for on-chain resources.
FT
Covers FT minting, transfers, and UTXO merging.
Live Example
Turing.sendTransaction() / FT
The active wallet network is Unknown. This method requires TBC. Switch networks and try again.
Fixed at 6.
Form and JSON stay in sync. Use real transaction IDs from the current network for on-chain resources.
PoolNFT
One workspace covers PoolNFT minting, initialization, liquidity changes, swaps, and UTXO merging.
Live Example
Turing.sendTransaction() / POOLNFT
The active wallet network is Unknown. This method requires TBC. Switch networks and try again.
Use an existing 64-character transaction ID from the active wallet network; format examples cannot be submitted.
The protocol accepts 1–6. The service fee rate follows the selected plan automatically.
Form and JSON stay in sync. Use real transaction IDs from the current network for on-chain resources.
Stablecoin
Covers stablecoin transfers and UTXO merging.
Live Example
Turing.sendTransaction() / Stablecoin
The active wallet network is Unknown. This method requires TBC. Switch networks and try again.
Use an existing 64-character transaction ID from the active wallet network; format examples cannot be submitted.
Form and JSON stay in sync. Use real transaction IDs from the current network for on-chain resources.
EVM
Live Example
Turing.evm.sendTransaction()
The active wallet network is Unknown. This method requires Ethereum Mainnet. Switch networks and try again.
BTC
Live Example
Turing.btc.sendTransaction()
The active wallet network is Unknown. This method requires BTC. Switch networks and try again.
Advanced Signing and Batch Requests
Advanced examples use a JSON editor so you can paste transaction and UTXO data built by your application. Signing and batch examples include sample data for request and code previews. Use Clear Input for your own data and Reset Template to reload the preset sample. The signTransaction offline sample references a synthetic UTXO, so it cannot be broadcast or spend assets.
Batch requests also have a master broadcasting gate. By default, supported transaction items request their business txraw; handle multi-raw results in order. Once enabled, each supported item follows its own broadcastEnabled setting. Dedicated Merge requests are rejected because sendBatchRequest does not support them.
signTransaction
Live Example
Turing.signTransaction()
The active wallet network is Unknown. This method requires TBC. Switch networks and try again.
Includes an offline signing sample that references a synthetic UTXO, so it cannot be broadcast or spend assets.
signAssociatedTransaction
Live Example
Turing.signAssociatedTransaction()
The active wallet network is Unknown. This method requires TBC. Switch networks and try again.
Includes sample data for preview. Clear it to use your own transaction data.
sendBatchRequest
Live Example
Turing.sendBatchRequest()
Includes sample data for preview. Clear it to use your own transaction data.
The active wallet network is Unknown. This method requires TBC. Switch networks and try again.
Off by default, forcing controllable transaction requests to use broadcastEnabled: false. When enabled, each JSON item keeps its own setting.
btc.signTransaction
Live Example
Turing.btc.signTransaction()
The active wallet network is Unknown. This method requires BTC. Switch networks and try again.
Includes sample data for preview. Clear it to use your own transaction data.
btc.sendBatchRequest
Live Example
Turing.btc.sendBatchRequest()
Includes sample data for preview. Clear it to use your own transaction data.
The active wallet network is Unknown. This method requires BTC. Switch networks and try again.
Off by default, forcing controllable transaction requests to use broadcastEnabled: false. When enabled, each JSON item keeps its own setting.