0
    async function sellRam(account_name, sell_bytes){
  try{
  const result = await api.transact (
  {
    account: 'eosio',
    name: 'sellram',
    authorization: [
      {
        actor: account_name,
        permission: 'active',
      },
    ],
    data: {
      account: account_name,
      bytes: sell_bytes,
    },
  },
  {
    blocksBehind: 3,
    expireSeconds: 30,
  }
  )
  console.log(result)
}catch(e){
  console.log(e)
}
}

It is giving error: TypeError: Cannot read property 'map' of undefined

My account is on Jungle testnet. What does this error mean? Please guide me. Thanks in advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.