You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Web3}from'web3';asyncfunctionmain(){constweb3=newWeb3('https://eth.llamarpc.com');constaddress=awaitweb3.eth.ens.getAddress('mike.eth');// worksconsole.log('address',address);constname=awaitweb3.eth.ens.getName(// throws error'0x1a5cdcfba600e0c669795e0b65c344d5a37a4d5a',);console.log('name',name);constavatar=awaitweb3.eth.ens.getText(// throws error'0x1a5cdcfba600e0c669795e0b65c344d5a37a4d5a',// works only if this is an ENS name like 'ethereum.eth''avatar',);console.log('avatar',avatar);}main();
Logs
.../node_modules/web3-eth-abi/lib/commonjs/api/parameters_api.js:103
throw new web3_errors_1.AbiError(`Parameter decoding error: ${err.message}`, {
^
AbiError: Parameter decoding error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.
at decodeParametersWith (/home/maltabba/repos/experiments/simple-typescript-starter-v4.x-ens/node_modules/web3-eth-abi/lib/commonjs/api/parameters_api.js:103:15)
at decodeParameters (/home/maltabba/repos/experiments/simple-typescript-starter-v4.x-ens/node_modules/web3-eth-abi/lib/commonjs/api/parameters_api.js:213:75)
at decodeMethodReturn (/home/maltabba/repos/experiments/simple-typescript-starter-v4.x-ens/node_modules/web3-eth-contract/lib/commonjs/encoding.js:136:56)
at Contract.<anonymous> (/home/maltabba/repos/experiments/simple-typescript-starter-v4.x-ens/node_modules/web3-eth-contract/lib/commonjs/contract.js:773:61)
at Generator.next (<anonymous>)
at fulfilled (/home/maltabba/repos/experiments/simple-typescript-starter-v4.x-ens/node_modules/web3-eth-contract/lib/commonjs/contract.js:21:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
innerError: undefined,
code: 205,
props: {
internalErr: AbiError: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.
at decodeParametersWith (/home/maltabba/repos/experiments/simple-typescript-starter-v4.x-ens/node_modules/web3-eth-abi/lib/commonjs/api/parameters_api.js:94:19)
at decodeParameters (/home/maltabba/repos/experiments/simple-typescript-starter-v4.x-ens/node_modules/web3-eth-abi/lib/commonjs/api/parameters_api.js:213:75)
at decodeMethodReturn (/home/maltabba/repos/experiments/simple-typescript-starter-v4.x-ens/node_modules/web3-eth-contract/lib/commonjs/encoding.js:136:56)
at Contract.<anonymous> (/home/maltabba/repos/experiments/simple-typescript-starter-v4.x-ens/node_modules/web3-eth-contract/lib/commonjs/contract.js:773:61)
at Generator.next (<anonymous>)
at fulfilled (/home/maltabba/repos/experiments/simple-typescript-starter-v4.x-ens/node_modules/web3-eth-contract/lib/commonjs/contract.js:21:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
innerError: undefined,
code: 205,
props: {}
}
}
}
Environment
Node.js v21.4.0
web3.js v4 (4.8.0)
The text was updated successfully, but these errors were encountered:
Steps to reproduce the behavior
Logs
Environment
Node.js v21.4.0
web3.js v4 (4.8.0)
The text was updated successfully, but these errors were encountered: