Developers Forum for XinFin XDC Network

Daniel047
Daniel047

Posted on

Address returned from apothem RPC has xdc prefix instead of 0x

I am using ethers for interacting with smart contracts deployed on XDC. The smart contract's function is executed correctly but when I am trying to use correct code to show receipt of minted tx it fails because of error from the scrrenshot below.
let receipt = await tx.wait();
console.log(receipt);

Screenshot of an error with address returned

Discussion (2)

Collapse
anilchinchawale profile image
AnilChinchawale • Edited on

I would suggest you to use apothem.xdcrpc.com in metamask or XDCPay.