classic

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCClient

RPCClient defines the interface for Stellar RPC operations

type Service

type Service interface {
	// CreateSponsoredAccount creates a new child account with sponsorship and USDC trustline.
	CreateSponsoredAccount(ctx context.Context, req types.CreateAccountRequest) error

	// SponsoredPaymentTransaction executes a sponsored payment from a child account.
	SponsoredPaymentTransaction(ctx context.Context, req types.SponsoredPaymentTransactionRequest) (*types.SponsoredPaymentTransactionResponse, error)

	// SendUSDC sends USDC directly from the treasury wallet to an external Stellar address with a memo.
	SendUSDC(ctx context.Context, req types.SendUSDCRequest) (*types.SendUSDCResponse, error)
}

Service defines the interface for Stellar classic operations.

func NewService

func NewService(
	rpcClient *rpcclient.Client,
	networkPassphrase string,
	treasurySecretKey string,
	usdcIssuer string,
) Service

NewService creates a new classic Stellar service

func NewServiceWithClient

func NewServiceWithClient(
	rpcClient RPCClient,
	networkPassphrase string,
	treasurySecretKey string,
	usdcIssuer string,
) Service

NewServiceWithClient creates a new classic Stellar service with a custom RPC client

Jump to

Keyboard shortcuts

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