Skip to Content
dAppsStellar
Sur cette page

Stellar

Intégrez Stellar à l’aide du fournisseur Stellar OneKey. Accès via window.$onekey.stellar.

Ce fournisseur est conçu pour correspondre à la structure de Stellar Wallets Kit KitActions : getAddress, signTransaction, signAuthEntry, signMessage, getNetwork.

Exemple minimal

const stellar = window.$onekey?.stellar if (!stellar?.isOneKey) throw new Error('OneKey Stellar provider not detected') const { address } = await stellar.getAddress() const network = await stellar.getNetwork() console.log({ address, network })

Erreurs courantes

  • 4001 : L’utilisateur a rejeté la demande
Dernière mise à jour le