Skip to content

Commit

Permalink
fix: docs starknet id
Browse files Browse the repository at this point in the history
  • Loading branch information
OxBonaparte committed Nov 18, 2022
1 parent 7ab252a commit 69b5bcc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions www/docs/API/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,23 @@ The _details_ object may include any of:

- details.**blockIdentifier**
- details.**nonce**

<hr />

account.**getStarkName**(StarknetIdContract) => _Promise<string | Error>_

Gets starknet.id stark name with the address of the account

The _StarknetIdContract_ argument can be undefined, if it is, the function will automatically use official starknet id contracts of your network (It currently supports TESTNET 1 only).

Returns directly a string (Example: `vitalik.stark`).

<hr />

account.**getAddressFromStarkName**(name, StarknetIdContract) => _Promise<string | Error>_

Gets account address with the starknet id stark name.

The _StarknetIdContract_ argument can be undefined, if it is, the function will automatically use official starknet id contracts of your network (It currently supports TESTNET 1 only).

Returns directly the address in a string (Example: `0xff...34`).

0 comments on commit 69b5bcc

Please sign in to comment.