Basic C (ERC1155) - Mainnet

Deposit & Withdraw from ERC1155 DSA. BASIC-ERC1155-v1.0 connector on mainnet triggers methods like depositERC1155, withdrawERC1155. You can view details like source code, ABIs on Etherscan.

  • Use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee to indicate ETH.
  • use -1 or dsa.maxValue for the maximum amount in function.
  • If not sure about the arguments getId and setId, pass 0.

DepositERC1155

Deposit a ERC1155 token to DSA

spells.add({  connector: "BASIC-C",  method: "depositERC1155",  args: [token, tokenId, amount, getId, setId]});
Parameter Type Description
token address Address of token.
tokenId uint256 ID of token.
amount uint256 Amount to deposit.
getId uint256 ID to retrieve amount.
setId uint256 ID stores the amount.

WithdrawERC1155

Withdraw a ERC1155 token from DSA

spells.add({  connector: "BASIC-C",  method: "withdrawERC1155",  args: [token, tokenId, to, amount, getId, setId]});
Parameter Type Description
token address Address of the token.
tokenId uint256 ID of token.
to address The address to receive the token upon withdrawal
amount uint256 Amount to withdraw.
getId uint256 ID to retrieve amount.
setId uint256 ID stores the amount.

If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.


Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.