lfglabs-dev / starknetid.js

A typescript SDK to retrieve all the on-chain data that you need from Starknet ID
MIT License
1 stars 0 forks source link

Add address to data #1

Closed fricoben closed 1 year ago

fricoben commented 1 year ago
  public abstract getUserData(
    idOrDomain: number | string,
    field: string,
  ): Promise<BN>;

Get user data also with the address because the address is the only thing an app has at the beginning. It's difficult to say oh I want the discord but I have to check if my user has a starknet ID/domain, get the tokenId/domain, and then use this function.

A function with the possibility to also give an address will be easier for devs.