Skip to content

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()

Detecting Wallet...
Detecting Wallet...
Code Preview

isConnected ​

Live Example

Turing.isConnected()

Detecting Wallet...
Detecting Wallet...
Code Preview

getAddress ​

Live Example

Turing.getAddress()

Detecting Wallet...
Detecting Wallet...
Code Preview

getInfo ​

Live Example

Turing.getInfo()

Detecting Wallet...
Detecting Wallet...
Code Preview

getNetwork ​

Live Example

Turing.getNetwork()

Detecting Wallet...
Detecting Wallet...
Code Preview

getPubKey ​

Live Example

Turing.getPubKey()

Detecting Wallet...
Detecting Wallet...
Code Preview

disconnect ​

Live Example

Turing.disconnect()

Detecting Wallet...
Detecting Wallet...
Code Preview

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()

Detecting Wallet...
Detecting Wallet...
Code Preview

encrypt ​

Live Example

Turing.encrypt()

Detecting Wallet...
Detecting Wallet...
Code Preview

decrypt ​

Live Example

Turing.decrypt()

Detecting Wallet...

Replace the default template with the encryptedMessage returned by Turing.encrypt().

Detecting Wallet...
Code Preview

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

Detecting Wallet...

The active wallet network is Unknown. This method requires TBC. Switch networks and try again.

Detecting Wallet...
Code Preview

NFT ​

Covers collection creation, NFT creation, and NFT transfers.

Live Example

Turing.sendTransaction() / NFT

Detecting Wallet...

The active wallet network is Unknown. This method requires TBC. Switch networks and try again.

Image data is readyUse an image up to 5 MiB. It will be compressed when needed and synced to JSON.

Form and JSON stay in sync. Use real transaction IDs from the current network for on-chain resources.

Detecting Wallet...
Code Preview

FT ​

Covers FT minting, transfers, and UTXO merging.

Live Example

Turing.sendTransaction() / FT

Detecting Wallet...

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.

Detecting Wallet...
Code Preview

PoolNFT ​

One workspace covers PoolNFT minting, initialization, liquidity changes, swaps, and UTXO merging.

Live Example

Turing.sendTransaction() / POOLNFT

Detecting Wallet...

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.

Detecting Wallet...
Code Preview

Stablecoin ​

Covers stablecoin transfers and UTXO merging.

Live Example

Turing.sendTransaction() / Stablecoin

Detecting Wallet...

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.

Detecting Wallet...
Code Preview

EVM ​

Live Example

Turing.evm.sendTransaction()

Detecting Wallet...

The active wallet network is Unknown. This method requires Ethereum Mainnet. Switch networks and try again.

Detecting Wallet...
Code Preview

BTC ​

Live Example

Turing.btc.sendTransaction()

Detecting Wallet...

The active wallet network is Unknown. This method requires BTC. Switch networks and try again.

Detecting Wallet...
Code Preview

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()

Detecting Wallet...

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.

Detecting Wallet...
Code Preview

signAssociatedTransaction ​

Live Example

Turing.signAssociatedTransaction()

Detecting Wallet...

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.

Detecting Wallet...
Code Preview

sendBatchRequest ​

Live Example

Turing.sendBatchRequest()

Detecting Wallet...

Includes sample data for preview. Clear it to use your own transaction data.

Active Wallet NetworkUnknown

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.

Detecting Wallet...
Code Preview

btc.signTransaction ​

Live Example

Turing.btc.signTransaction()

Detecting Wallet...

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.

Detecting Wallet...
Code Preview

btc.sendBatchRequest ​

Live Example

Turing.btc.sendBatchRequest()

Detecting Wallet...

Includes sample data for preview. Clear it to use your own transaction data.

Active Wallet NetworkUnknown

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.

Detecting Wallet...
Code Preview