Solana (Solana v0.2.0) View Source

A library for interacting with the Solana blockchain.

Link to this section Summary

Functions

Decodes or extracts a Solana.Key.t/0 from a Base58-encoded string or a Solana.Key.pair/0.

Decodes or extracts a Solana.Key.t/0 from a Base58-encoded string or a Solana.Key.pair/0.

The public key for the Rent system variable.

Link to this section Types

Link to this section Functions

See Solana.Key.pair/0

Decodes or extracts a Solana.Key.t/0 from a Base58-encoded string or a Solana.Key.pair/0.

Returns {:ok, key} if the key is valid, or an error tuple if it's not.

Link to this function

pubkey!(pair_or_encoded)

View Source

Decodes or extracts a Solana.Key.t/0 from a Base58-encoded string or a Solana.Key.pair/0.

Throws an ArgumentError if it fails to retrieve the public key.

The public key for the RecentBlockhashes system variable

The public key for the Rent system variable.