Claim / Claim Conditions
Functionality available for contracts that implement the
IDropSinglePhase
interface or the
Drop1155
contract.
Enables wallets to claim (mint) NFTs from the contract under specific conditions.
claim
Claim a specified number of tokens to the connected wallet.
token_id = 0
quantity = 1
tx = contract.erc1155.claim(token_id, quantity)
receipt = tx.receipt
claimed_token_id = tx.id
claimed_nft = tx.data()
Configuration
claim_to
The same as claim
, but allows specifying the recipient
address rather than using the connected wallet.
address = "0x7fDae677aA6f94Edff9872C4b91D26407709c790"
token_id = 0
quantity = 1
tx = contract.erc1155.claim_to(address, token_id, quantity)
receipt = tx.receipt
claimed_token_id = tx.id
claimed_nft = tx.data()
Configuration
get_active
Retrieve the currently active claim phase for a specific token ID, if any.
active_phase = contract.erc1155.claim_conditions.get_active(
"{{token_id}}",
)
Configuration
get_all
Get all the claim phases configured for a specific token ID.
claimPhases = contract.erc1155.claimConditions.get_all(
"{{token_id}}",
)