Address

Solidity

परिभाषा

Address एक 20-byte value है जो Ethereum पर एक account को identify करता है। यह externally-owned account (EOA) या smart contract हो सकता है। Solidity में, address type 0x से शुरू होने वाले 42 hexadecimal characters का string होता है। Address type के special methods हैं जैसे balance, transfer(), send()।

English version

Address is a 20-byte value that identifies an account on Ethereum. It can be an externally-owned account (EOA) or a smart contract. In Solidity, the address type is a 42-character hexadecimal string starting with 0x. Address types have special methods like balance, transfer(), send().

Code Example

address public owner;
address payable public recipient;

// Vérifier le solde
uint256 balance = owner.balance;

// Transférer des ETH
recipient.transfer(1 ether);

संबंधित शब्द

Solingo पर इस concept को practice करें

Address को interactive exercises और integrated IDE के साथ master करें।

मुफ्त में शुरू करें