Appearance
Deposit
depositETH
Parameters
*starkKey string
A unique key that identifies the user in the off-chain state.
*quantizedAmount string | number
Amount of ETH.
Example
tsx
await reddio.apis.depositETH({
starkKey: "0x38cae143fe6d2b8bdb7051f211744017d98f7e6a67e45a5dfc08759c119cf3c",
quantizedAmount: "0.01",
});
depositERC20
Parameters
*starkKey string
A unique key that identifies the user in the off-chain state.
*quantizedAmount string | number
Amount of ERC20.
*tokenAddress string
Contract address of ERC20.
Example
tsx
await reddio.apis.depositERC20({
starkKey: "0x38cae143fe6d2b8bdb7051f211744017d98f7e6a67e45a5dfc08759c119cf3c",
tokenAddress: "0x941661bd1134dc7cc3d107bf006b8631f6e65ad5",
quantizedAmount: "1",
});
depositERC721
Parameters
*starkKey string
A unique key that identifies the user in the off-chain state.
*tokenId number
tokenId of ERC721.
*tokenAddress string
Contract address of ERC721.
Example
tsx
await reddio.apis.depositERC721({
starkKey: "0x38cae143fe6d2b8bdb7051f211744017d98f7e6a67e45a5dfc08759c119cf3c",
tokenAddress: "0x941661bd1134dc7cc3d107bf006b8631f6e65ad5",
tokenId: 1,
});