# Solana

该文档描述了TokenPocket钱包在Solana网络下的相关二维码协议。TokenPocket Android版本从1.6.7开始支持本协议，Solana网络观察钱包冷钱包交互使用该协议，新版本的应用兼容老版本协议。

### 签名交易

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

//签名结果
solana:signSolanaTransaction-version=1.0&protocol=TokenPocket&network=solana&chain_id=1&data=
{
	"message": ["87PYuq6WCXzKLkumpe8mb94NM1HuGo6aQrziNqZUKdP1dhGNfXXPYww2HDtJVqTak2pUeDdqfU8B5rpEUJ4FVD52VQ4uNNxTyRNHdV3QaG41wy14gS7ZmBe9ESJ6bUzGcerRHynTKSJgL4kVBwwhk3vvxetu2BjkV3BgBTq5f5GVCdYYXuGcfN1UyooyZ48j7XiN16JpmmEo"],
	"signature": [{
		"signature": "xxx",
		"publicKey": "xxx"
	}]
}
签名结果中，signature数组元素对应message数组中元素的签名结果
```

### 签名字符串

```
// 
 solana:signMessage-version=1.0&protocol=TokenPocket&network=solana&chain_id=1&data={
	"message":"xxx",
	"address":"xxxx" //指定签名钱包
 }
 //字符串签名结果
 solana:signMessageSignature-version=1.0&protocol=TokenPocket&network=solana&chain_id=1&data={
	"signature":{"signature":xxx, "publicKey":xxx},
	"address":"xxxx"
 }
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.tokenpocket.pro/developer-cn/scan-protocol/solana.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
