|
| 1 | +--- |
| 2 | +id: address |
| 3 | +title: Address Types |
| 4 | +description: Learn about the different types of accounts in NEAR Protocol |
| 5 | +hide_title: true |
| 6 | +--- |
| 7 | + |
| 8 | +import Card from '@site/src/components/UI/Card'; |
| 9 | + |
| 10 | +import Progress from "@site/src/components/Academy/Progress"; |
| 11 | +import { Quiz, MultipleChoice, Option } from "@site/src/components/Academy/Quiz"; |
| 12 | + |
| 13 | +<Progress course="accounts" total={6} /> |
| 14 | + |
| 15 | +## Address Types in NEAR Protocol |
| 16 | + |
| 17 | +Each account in NEAR protocol is identified by a **single and unique** address. While NEAR supports multiple types of addresses, most accounts use one of two: **named address** or **implicit address**. |
| 18 | + |
| 19 | +<div class="row" style={{marginTop: '2rem'}}> |
| 20 | + <div class="col col--6"> |
| 21 | + <Card title="Named Addresses" > |
| 22 | + Named addresses are human-readable addresses that are easy to remember and share, making them ideal for everyday use: |
| 23 | + |
| 24 | + - <a>`near` / `account.near` / `account.sweat` / `app.finance.tg`</a> |
| 25 | + |
| 26 | + </Card> |
| 27 | + </div> |
| 28 | + <div class="col col--6"> |
| 29 | + <Card title="Implicit Address" > |
| 30 | + Implicit addresses are derived from cryptographic key pairs and are a long strings of 64 characters |
| 31 | + |
| 32 | + - <a>`757503837a63ece206449d450ec77ae8d79c88ccda5e62a810f4eeb51db93050`</a> |
| 33 | + </Card> |
| 34 | + </div> |
| 35 | +</div> |
| 36 | +<div class="row" style={{marginTop: '2rem'}}> |
| 37 | + <div class="col col--6"> |
| 38 | + <Card title="Ethereum Address" > |
| 39 | + NEAR Protocol supports Ethereum-like addresses to allow interoperability with EVM-based applications and tools |
| 40 | + |
| 41 | + - <a>`0x32Be343B94f860124dC4fEe278FDCBD38C102D88`</a> |
| 42 | + </Card> |
| 43 | + </div> |
| 44 | + <div class="col col--6"> |
| 45 | + <Card title="Other Addresses" > |
| 46 | + NEAR supports more addresses in order to accommodate various use cases, an address is valid if: |
| 47 | + |
| 48 | + - <a>It has between 2 and 64 chars</a> |
| 49 | + - <a>Uses valid chars (`a-z`, `0-9`, `-`, `_`, `.`)</a> |
| 50 | + - <a>Does not start or finish on a special character (`.`,`-`,`_`)</a> |
| 51 | + |
| 52 | + </Card> |
| 53 | + </div> |
| 54 | +</div> |
| 55 | + |
| 56 | +--- |
| 57 | + |
| 58 | +## Quiz |
| 59 | + |
| 60 | +<Quiz course="accounts" id="accounts-quiz"> |
| 61 | + <MultipleChoice question="What are the two main types of NEAR accounts?"> |
| 62 | + <Option> A. Public accounts and private accounts.</Option> |
| 63 | + <Option correct> B. Named accounts (like alice.near) and implicit accounts (like 0x123...).</Option> |
| 64 | + <Option> C. Personal accounts and business accounts.</Option> |
| 65 | + <Option> D. Main accounts and backup accounts.</Option> |
| 66 | + </MultipleChoice> |
| 67 | + <MultipleChoice question="What is a key advantage of named accounts over implicit accounts?"> |
| 68 | + <Option> A. Named accounts are more secure than implicit accounts.</Option> |
| 69 | + <Option correct> B. Named accounts are human-readable and easy to remember, like alice.near.</Option> |
| 70 | + <Option> C. Named accounts cost less to create than implicit accounts.</Option> |
| 71 | + <Option> D. Named accounts can hold more tokens than implicit accounts.</Option> |
| 72 | + </MultipleChoice> |
| 73 | + <MultipleChoice question="In NEAR's hierarchical account system, who can create the sub-account 'store.bob.near'?"> |
| 74 | + <Option> A. The 'near' account can create it.</Option> |
| 75 | + <Option correct> B. Only the 'bob.near' account can create it.</Option> |
| 76 | + <Option> C. Any account can create it.</Option> |
| 77 | + <Option> D. Only the registrar can create it.</Option> |
| 78 | + </MultipleChoice> |
| 79 | + <MultipleChoice question="What is the difference between a Full Access Key and a Function Call Key?"> |
| 80 | + <Option> A. Full Access Keys are free, Function Call Keys cost money.</Option> |
| 81 | + <Option correct> B. Full Access Keys have complete control, Function Call Keys have limited permissions for specific contracts.</Option> |
| 82 | + <Option> C. Full Access Keys work on mainnet, Function Call Keys work on testnet.</Option> |
| 83 | + <Option> D. Full Access Keys are for named accounts, Function Call Keys are for implicit accounts.</Option> |
| 84 | + </MultipleChoice> |
| 85 | + <MultipleChoice question="How do NEAR transaction costs compare to Ethereum?"> |
| 86 | + <Option> A. NEAR transactions cost more than Ethereum transactions.</Option> |
| 87 | + <Option correct> B. NEAR transactions cost tenths of a cent, while Ethereum transactions often cost dollars.</Option> |
| 88 | + <Option> C. NEAR and Ethereum have the same transaction costs.</Option> |
| 89 | + <Option> D. NEAR transactions are always free.</Option> |
| 90 | + </MultipleChoice> |
| 91 | +</Quiz> |
| 92 | + |
| 93 | + |
0 commit comments