@randlabs wallet error

I’ve been getting an error “object contains empty or 0 values. First empty or 0 value encountered during encoding: xaid”

I don’t get this on my local machine though.
I can’t figure out what this means?

Hi @toad, please give us some context. What are you trying to do? Did you try in different browsers/computers?

Regards,
Mauro.

were you able to fix it? I’m facing the same thing with

const txn1 = algosdk.makeAssetTransferTxnWithSuggestedParamsFromObject({
                suggestedParams: {
                    ...params,
                },
                from: walletAccounts[0].address,
                to: address,
                amount: Number(20000000),
});

for amount

I don’t know if it’s the same issue as @toad.
But I think that your issue stems from the fact you’re missing the asset ID (field assetIndex).
If you want to transfer Algos (and not ASA/assets), you need to use algosdk.makePaymentTxnWithSuggestedParamsFromObject instead.

See also Payment Transaction | MyAlgo Connect

PS: I’ve edited your post to put the code inside triple backquotes to facilitate reading (```)

1 Like

Yes you are right, it worked thank you