Files
libsam/pkg/swqos/types.go
2025-12-26 11:13:31 +08:00

20 lines
407 B
Go

package swqos
import (
"context"
"github.com/gagliardetto/solana-go"
)
type SWQoSClientConfig struct {
SendTxUrl string `json:"sendTxUrl"`
SendBundleUrl string `json:"sendBundleUrl"`
KeepAliveUrl string `json:"keepAliveUrl"`
}
type SWQoSClient interface {
SendTransaction(ctx context.Context, tx *solana.Transaction) error
SendBundle(ctx context.Context, txs []*solana.Transaction) error
}