Solana

Token Transfers

Solana Blockchain is still in Beta!
SolanaTokenTransfers Stream represents all supported Solana based SPL Token transfers with positive (> 0) value.
The Solana Program Library or simply called SPL is a collection of on-chain programs maintained by the Solana team. The SPL Token program is the token standard of the Solana 11 blockchain.

Details

Stream type
1
{
2
from: address,
3
to: address,
4
value: int256,
5
token: {
6
verified: boolean,
7
name: string,
8
symbol: string,
9
contract: address,
10
decimals: int256
11
},
12
transaction: {
13
fee: int256,
14
origin: address,
15
recentBlockhash: string,
16
signatures: [string]
17
},
18
block: {
19
number: int256,
20
hash: string,
21
parentHash: string,
22
rewards: [
23
{
24
value: {
25
beneficiary: address,
26
postBalance: int256,
27
lamports: int256,
28
rewardType: string
29
}
30
}
31
]
32
}
33
}
Copied!
to - the recipient address
from - the initiator address
value - the value of the Token Transfer
token - the information about Token
  • verified - is true when there is a verification mark put by the PARSIQ and the Token meets all the requirements. If so, then the rest of data (name, symbol, contract, decimals) is also available.
  • name - the name of the Token
  • symbol - the symbol of the Token
  • contract - the Smart Contract address of the Token
  • decimals - the decimals amount of Token
transaction - the information about the Transaction containing Token Transfer
  • fee - the Transaction fee
  • origin - the origin address of the Transaction
  • recentBlockhash - each transaction contains a recent blockhash to indicate its liveness. A transaction includes a recent blockhash to prevent duplication and to give transactions lifetimes.
  • [signatures] - the list of signatures
block - the information about the Block containing the Transaction

Example

The following example allows to monitor all SRM (this token is verified by us) Token Transfers on Solana Mainnet occuring with MySolanaWallet
1
stream AllMySRMTransfers
2
from SolanaTokenTransfers
3
where @to == MySolanaWallet || @from == MySolanaWallet
4
where @token.verified == true && @token.symbol == "SRM"
Copied!
​
Last modified 9mo ago