If I want to store abi in contract, which type can be use? and How can I get it later.
For example, if I use bytes
to store a contract's abi. How can I use JSON.parse
to get it. I have not find a proper api in web3.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this community
bytes
would cost you a lot of gas.string
would be most appropriate.