Solana (Solana v0.1.0)

View Source

A library for interacting with the Solana blockchain.

Summary

Functions

The public key for the BPF Loader program

The public key for the Clock system variable

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.

Types

key()

@type key() :: Solana.Key.t()

See Solana.Key.t/0

keypair()

@type keypair() :: Solana.Key.pair()

See Solana.Key.pair/0

Functions

bpf_loader()

The public key for the BPF Loader program

clock()

The public key for the Clock system variable

keypair()

See Solana.Key.pair/0

pubkey(pair_or_encoded)

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.

pubkey!(pair_or_encoded)

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.

recent_blockhashes()

The public key for the RecentBlockhashes system variable

rent()

The public key for the Rent system variable.