DecaneDocs
UsersUsers and addresses
Users

Users and addresses

Two calls turn a verified token into wallet addresses. Both hit the backend, so both honour revocation at once.

get_user

python
user = decane.get_user(token)
user.id                # the Decane user id (uid)
user.addresses.evm     # "0x…" or None
user.addresses.solana
user.addresses.tron
user.linked_accounts   # (LinkedAccount(type="wallet", chain_type="ethereum", address=…), …)

linked_accounts is Privy-compatible, so code written against Privy’s user object needs little change. chain_type is ethereum, solana or tron.

get_addresses

python
addresses = decane.get_addresses(token)  # Addresses(evm=…, solana=…, tron=…)

A user who has signed in but has no wallet yet has every address as Noneuntil a client creates the wallet, or your server does with create_user_wallet.