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

rust
let user = decane.get_user(token).await?;
user.id;               // the Decane user id (uid)
user.addresses.evm;    // Option<String>
user.addresses.solana;
user.addresses.tron;
user.linked_accounts;  // Vec<LinkedAccount>: { type: Wallet, chain_type: Ethereum, address }

linked_accounts is Privy-compatible. ChainType is Ethereum, Solana or Tron.

get_addresses

rust
let addresses = decane.get_addresses(token).await?; // 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.