Before committing to a transaction, it’s often useful to simulate its outcome to understand the potential changes and detect any errors preemptively.
portal.api.simulateTransaction
, which gives you insights into what will happen upon executing a transaction.
Here’s how it works:
NATIVE
or ERC20
or ERC721
or ERC1155
or SPECIAL_NFT
).APPROVE
or TRANSFER
).