SOL / BORSH Decoder
How it works
Solana accounts can store arbitrary data, most often using Borsh, a binary serializer. Using this tool, you can define a layout to decode the data. We've included default layouts for the Token program and a few others.
Borsh will indiscriminately decode the data using the defined layout. That is to say, if you define a public key where there is actually a u32, the decoded value won't be the expected result. However, some types such as bool and optional properties expect specific values and may throw an error. Also if an early property in the layout is the wrong size, it will throw off the offsets of later properties resulting in invalid data.