Ethereum vanity addresses
Ethereum vanity address is a one-of-a-kind customized address that has portions of it chosen rather than being created at random. Why would you create a vanity address? First of all, it looks cool. The second thing it can help you with is to reinforce your brand and make you more noticeable. How to generate your own vanity address? Creating a vanity address is a straightforward trial-and-error process. When performing high-risk cryptographic operations, such as private key creation, it is imp...
Bored Ape Yacht Club: Smart Contract Breakdown
Bored Ape Yacht Club (BAYC) is a popular NFT collection created by Yuga Labs. In this post, we’ll go over BAYC smart contract code. The source code is available on EtherScan.ERC721BAYC is implemented as an ERC721 token, a standard that defines a set of functions that a smart contract must implement in order to be considered a compliant ERC721 token. These functions include the ability to transfer tokens, approve other addresses to manage your tokens, and check token ownership.ERC721 interface...
EIP vs ERC
In the Ethereum world, EIP and ERC phrases come up quite often. What exactly is the difference between the two? EIP stands for Ethereum Improvement Proposal. It is a design document that outlines a proposed change or improvement to Ethereum. Once an EIP has been authorized and confirmed by a committee, it becomes an ERC. ERC stands for Ethereum Request for Comment. It is a protocol for proposing and implementing new Ethereum-based tokens, smart contracts, and other related features. EIPs can ...
Co-founder & CTO of Blank. Building software and helping companies enter web3.
Arrays are useful when you know the size of the collection in advance, and you need to be able to iterate over the elements in a specific order.
Mappings are useful when you don't know the size of the collection in advance, and you need to be able to quickly lookup values.
Here are a few specific scenarios where you might choose to use one over the other:
1. Use an array when you need to store a collection of items that need to be accessed by index.
2. Use a mapping when you need to associate unique IDs with certain data, such as mapping account addresses to their balance or mapping item IDs to their name and price.
3. If you have a large data set and don't need to access all of it frequently mapping would be more memory efficient as it only stores the key-value pair you need, while in an array, it stores the whole set even if you access only a small part of it.
4. When you need to iterate over the collection, use an array, as mappings don't support iteration over their keys or values.
Keep in mind, arrays are more suited for small and predictable data sets, while mappings are better for large and unpredictable data sets.
Arrays are useful when you know the size of the collection in advance, and you need to be able to iterate over the elements in a specific order.
Mappings are useful when you don't know the size of the collection in advance, and you need to be able to quickly lookup values.
Here are a few specific scenarios where you might choose to use one over the other:
1. Use an array when you need to store a collection of items that need to be accessed by index.
2. Use a mapping when you need to associate unique IDs with certain data, such as mapping account addresses to their balance or mapping item IDs to their name and price.
3. If you have a large data set and don't need to access all of it frequently mapping would be more memory efficient as it only stores the key-value pair you need, while in an array, it stores the whole set even if you access only a small part of it.
4. When you need to iterate over the collection, use an array, as mappings don't support iteration over their keys or values.
Keep in mind, arrays are more suited for small and predictable data sets, while mappings are better for large and unpredictable data sets.
Ethereum vanity addresses
Ethereum vanity address is a one-of-a-kind customized address that has portions of it chosen rather than being created at random. Why would you create a vanity address? First of all, it looks cool. The second thing it can help you with is to reinforce your brand and make you more noticeable. How to generate your own vanity address? Creating a vanity address is a straightforward trial-and-error process. When performing high-risk cryptographic operations, such as private key creation, it is imp...
Bored Ape Yacht Club: Smart Contract Breakdown
Bored Ape Yacht Club (BAYC) is a popular NFT collection created by Yuga Labs. In this post, we’ll go over BAYC smart contract code. The source code is available on EtherScan.ERC721BAYC is implemented as an ERC721 token, a standard that defines a set of functions that a smart contract must implement in order to be considered a compliant ERC721 token. These functions include the ability to transfer tokens, approve other addresses to manage your tokens, and check token ownership.ERC721 interface...
EIP vs ERC
In the Ethereum world, EIP and ERC phrases come up quite often. What exactly is the difference between the two? EIP stands for Ethereum Improvement Proposal. It is a design document that outlines a proposed change or improvement to Ethereum. Once an EIP has been authorized and confirmed by a committee, it becomes an ERC. ERC stands for Ethereum Request for Comment. It is a protocol for proposing and implementing new Ethereum-based tokens, smart contracts, and other related features. EIPs can ...
Share Dialog
Share Dialog
Co-founder & CTO of Blank. Building software and helping companies enter web3.

Subscribe to 0xMarko

Subscribe to 0xMarko
<100 subscribers
<100 subscribers
No activity yet