> For the complete documentation index, see [llms.txt](https://help.tokenpocket.pro/developer-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.tokenpocket.pro/developer-en/scan-protocol/solana.md).

# Solana

This document show Solana network qrcode protocol in TokenPocket. The TokenPocket Android version supports this protocol from 1.6.7, and Solana network watch-wallet uses this protocol interact with cold wallet, also the new version of the app will compatible with old version qrcode protocol.

### Sign transaction

```
solana:signSolanaTransaction-version=1.0&protocol=TokenPocket&network=solana&chain_id=1&data=
{
	"message": ["87PYuq6WCXzKLkumpe8mb94NM1HuGo6aQrziNqZUKdP1dhGNfXXPYww2HDtJVqTak2pUeDdqfU8B5rpEUJ4FVD52VQ4uNNxTyRNHdV3QaG41wy14gS7ZmBe9ESJ6bUzGcerRHynTKSJgL4kVBwwhk3vvxetu2BjkV3BgBTq5f5GVCdYYXuGcfN1UyooyZ48j7XiN16JpmmEo"],
	"address": "xxx"
}


solana:signSolanaTransactionSignature-version=1.0&protocol=TokenPocket&network=solana&chain_id=1&data=
{
	"message": ["87PYuq6WCXzKLkumpe8mb94NM1HuGo6aQrziNqZUKdP1dhGNfXXPYww2HDtJVqTak2pUeDdqfU8B5rpEUJ4FVD52VQ4uNNxTyRNHdV3QaG41wy14gS7ZmBe9ESJ6bUzGcerRHynTKSJgL4kVBwwhk3vvxetu2BjkV3BgBTq5f5GVCdYYXuGcfN1UyooyZ48j7XiN16JpmmEo"],
	"signature": [{
		"signature": "xxx",
		"publicKey": "xxx"
	}]
}
The signature array elements correspond to the signature results of the elements in the message array
```

### Sign message

```
 solana:signMessage-version=1.0&protocol=TokenPocket&network=solana&chain_id=1&data={
	"message":"xxx",
	"address":"xxx" //optional if set app will use the wallet with this address to sign message
 }
 
 solana:signMessageSignature-version=1.0&protocol=TokenPocket&network=solana&chain_id=1&data={
	"signature":{"signature":xxx, "publicKey":xxx},
	"address":"xxx"
 }
```
