ton-connect / sdk

SDK for TON Connect 2.0 — a comprehensive communication protocol between wallets and apps in TON ecosystem
Apache License 2.0
329 stars 96 forks source link

[UI]: Wallets Order #191

Open rashdeva opened 5 months ago

rashdeva commented 5 months ago

Your Question

Is there a way to set an order of wallets in Modal? I want to setup my own order Screenshot 2024-06-20 at 18 48 05

Context

No response

What have you tried so far?

I tried to work with walletsListConfiguration, but it didn't give any result.

Relevant Code or Commands

No response

Documentation Check

GrayJyy commented 4 months ago

i also wanna do this,can you tell me how you solve it?

wxc666 commented 3 months ago
const tonConnectUI = new TonConnectUI({ 
  connector: new TonConnect({
    manifestUrl: window.location.origin+'/tonconnect-manifest.json',
    //Wallets list, See source code. default: https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json
    //You just need to reorder this list,Place the target wallet at the front of the list
    walletsListSource: window.location.origin+"/tonconnect-wallets.json",
  })
});