collectionOffer
collectionOffer()
async def collectionOffer(gift_name: str, amount: float | int, expiration_days: int, max_nfts: int, authData: str) -> None
Create an offer for the gift collection by gift name
Returns
None
if the collection offer was created successfully
Raises
authDataError
ifauthData
is not providedofferError
ifgift_name
,amount
aren't providedofferError
ifexpiration_days
isn't0
or7
.requestError
if request fails.
Parameters
gift_name
(str): The name of the gift collection.amount
(float | int): The amount in TON - price you're offeringexpiration_days
(int): The number of days after which the offer expires. Use0
for no expiration and7
for a 7-day expiration. Defaults to7
.max_nfts
(int): The maximum number of NFTs for the offer. Defaults to1
.authData
(str): Authentication data required to create the offer.
Example
Create an offer for Plush Pepe collection for 1 TON with 7 days expiration (default) and 1 max_nfts (default):
from aportalsmp.offers import collectionOffer
from aportalsmp.auth import update_auth
import asyncio
auth = asyncio.run(update_auth(api_id=123, api_hash="..."))
async def main():
await collectionOffer(gift_name = "Plush Pepe", amount = 1, authData = auth)
See used functions: update_auth
Last updated