depositStorage
Deposits 0.01 * listAmount
of NEAR Token to the market smart contract to be consumed for each listing.
If the amount of active listings becomes larger than the corresponding deposits called by an account, another deposit will need to be made to make listing possible.
Market address default values depend on the NEAR_NETWORK enviroment variable. If you set it to mainnet
you will get the mainnet marketId
simple.market.mintbase1.near
otherwise it will default to the testnet
value market-v2-beta.mintspace2.testnet
.
As with all new SDK api methods, this call should be wrapped in execute and passed a signing method
depositStorage(args: DepositStorageArgs): NearContractCall
depositStorage
takes a single argument of type DepositStorageArgs
React example
Example usage of deployContract method in a hypothetical React component:
Last updated