ABI (Application Binary Interface)

EVM

परिभाषा

ABI एक specification है जो define करता है कि smart contract के साथ कैसे interact करें। यह JSON format में functions, parameters, return types और events को describe करता है। यह smart contracts के लिए API के बराबर है, जो frontend applications और दूसरे contracts को blockchain पर deployed bytecode के साथ सही तरीके से communicate करने में मदद करता है।

English version

The ABI is the specification that defines how to interact with a smart contract. It describes functions, parameters, return types and events in JSON format, enabling frontend apps and other contracts to communicate with deployed bytecode.

Code Example

// ABI généré automatiquement par le compilateur
[{
  "inputs": [{"name": "amount", "type": "uint256"}],
  "name": "transfer",
  "outputs": [{"name": "", "type": "bool"}],
  "stateMutability": "nonpayable",
  "type": "function"
}]

संबंधित शब्द

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

ABI (Application Binary Interface) को interactive exercises और integrated IDE के साथ master करें।

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