Stellar
Integrate Stellar using OneKey’s Stellar provider. Access via window.$onekey.stellar.
This provider is designed to match the Stellar Wallets Kit KitActions shape: getAddress, signTransaction, signAuthEntry, signMessage, getNetwork.
Quick Links
Minimal Example
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 })Common Errors
4001: User rejected the request
Last updated on