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": "FWpVCuNAFYFu5oeyue19RD6pD9gs1Dhq6i642XrTMZRz"
}


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":"FWpVCuNAFYFu5oeyue19RD6pD9gs1Dhq6i642XrTMZRz" //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":"FWpVCuNAFYFu5oeyue19RD6pD9gs1Dhq6i642XrTMZRz"
 }

Last updated