stellar

package
v0.107.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2026 License: MIT Imports: 7 Imported by: 6 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeypairFromHex

func KeypairFromHex(hexKey string) (*keypair.Full, error)

KeypairFromHex creates a keypair.Full from a hex-encoded private key. The hex string can be with or without the "0x" prefix.

Types

type Chain

type Chain struct {
	ChainMetadata

	// Client is the Soroban RPC client for interacting with the Stellar network
	Client *rpcclient.Client

	// Signer is the keypair used for signing transactions
	Signer StellarSigner

	// URL is the Soroban RPC endpoint URL
	URL string

	// FriendbotURL is the Friendbot endpoint URL for funding test accounts (optional, only required for testing)
	FriendbotURL string

	// NetworkPassphrase identifies the Stellar network
	NetworkPassphrase string
}

Chain represents a Stellar network instance used by the Chainlink Deployments Framework (CLDF).

func (Chain) ReadOnly added in v0.100.0

func (c Chain) ReadOnly() (chaincommon.BlockChain, error)

type ChainMetadata

type ChainMetadata = chaincommon.ChainMetadata

type StellarSigner

type StellarSigner interface {
	// Sign signs the given message and returns the signature bytes.
	Sign(message []byte) ([]byte, error)

	// SignDecorated signs the given message and returns a decorated signature (XDR format).
	SignDecorated(message []byte) (xdr.DecoratedSignature, error)

	// Address returns the Stellar address derived from the signer's public key.
	Address() string

	// KeypairFull returns the underlying keypair.Full used by this signer, if available.
	KeypairFull() *keypair.Full
}

StellarSigner is an interface that provides signing capabilities for Stellar transactions.

func NewStellarKeypairSigner

func NewStellarKeypairSigner(kp *keypair.Full) StellarSigner

NewStellarKeypairSigner creates a new StellarSigner from a keypair.Full.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL