Result Type
Solana Suite's responses are implemented using the Result Type, a pattern commonly used in functional programming languages like Rust. Handling responses from functions can be done as follows. Additionally, exceptions occurring internally are converted to Result Type using Try().
example
type guard pattern
unwrap pattern
map pattern
match pattern
Last updated