Download

arrow_down

Developer sercices

arrow_down

More

arrow_down
activityactivityactivityactivity
  • themelight
  • languageIcon

  • menu
Skip to Content
EnDocs
Reference
Bitget Link Parameters

Bitget Link Parameters

Describes the purpose of Bitget link parameters

Parameter Description

ParameterDescriptionExample
_needChainControl wallet main chain switching
  • • ETH Network: _needChain=eth

  • • BSC Network: _needChain=bnb

  • • Heco Network: _needChain=ht

More networks please refer to

_nobarWhether to hide the native header, displayed by default
_nobar=false
Preview
_nobar=true
Preview
bgw_languageGet the current language used by the app. Domain whitelist requiredbgw_language=en
  • • English (en)
  • • Simplified Chinese (zh)
  • • Traditional Chinese (tw || zh_tw)
  • • Hindi (hi)
  • • Indonesian (id)
  • • Japanese (ja)
  • • Korean (ko)
  • • Thai (th)
  • • Vietnamese (vi)
  • • Bengali (bn)
  • • Arabic (ar)
  • • Russian (ru)
  • • German (de)
  • • French (fr)
  • • Italian (it)
  • • Spanish (es)
  • • Spanish (Spain) (es_es)
  • • Portuguese (pt)
  • • Portuguese (Brazil) (pt_br)
  • • Turkish (tr)

1. Link Parameter Retrieval

const searchParams = new URLSearchParams(window.location.href); searchParams.get("bgw_language");

If domain is not whitelisted, use option 2

2. NPM Package Retrieval

import { getHeader } from "@bitget-wallet/utils"; getHeader().then((res) => { if (res?.success) { return res?.data?.LANGUAGE; } });

bgw_theme

Get the current theme mode used by the app. Domain whitelist required

1. Link Parameter Retrieval

const searchParams = new URLSearchParams(window.location.href); searchParams.get("bgw_theme") === "1" ? "dark" : "light";

If domain is not whitelisted, use option 2

2. NPM Package Retrieval

import { appMode } from "@bitget-wallet/utils"; appMode().then((res) => { if (res?.success) { return `${res?.data}` === "1" ? "dark" : "light"; } });
Last updated on