getId/setId
How to use getID and setID to create transactions
What’s the use of getId and setId?
Example of using getId and setId
Code Snippet:
spells.add({
connector: "oneInch",
method: "sell",
args: [eth_address, usdc_address, sellAmount, unitAmt, 0, "482"] // setting bought ETH amount at id 482
});
spells.add({
connector: "compound",
method: "deposit",
args: [eth_address, 0, "482", 0] // getting deposit amount from id 482
});Last updated