Native Chain Algorithm
How is a user's "native" chain determined?
You may have noticed that on the BitBadges site and other places, a user's "preferred" or "main" blockchain is remembered and auto-populated. This is how we populate the chain and address field in account route responses. We determine the main chain in the following order.
Chain of last signed BitBadges transaction
Chain of last sign in on BitBadges app
Try to check any transaction history (e.g. submitted any transactions on Ethereum mainnet chain?)
Requested address format
Guess / default to Ethereum since it is the most popular
Last updated