NFTCollectionContract<E extends WalletContractTransferParams<OutAction>> class

Inheritance
Implementers

Constructors

NFTCollectionContract.new({required WalletContract<dynamic, E> owner, required TonAddress address, NftCollectionState? state})
const
NFTCollectionContract.create({required WalletContract<dynamic, E> owner, required NftCollectionState state})
factory

Properties

address TonAddress
The address of this contract on the TON blockchain.
final
hashCode int
The hash code for this object.
no setterinherited
owner WalletContract<dynamic, E>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state NftCollectionState?
The state associated with this contract.
final

Methods

deploy({required E params, required TonProvider rpc, required BigInt amount, int sendMode = SendModeConst.payGasSeparately, int? timeout, bool? bounce, bool bounced = false, Cell? body}) Future<String>
getCollectionData(TonProvider rpc) Future<NFTCollectionData>
getNftAddressByIndex({required BigInt index, required TonProvider rpc}) Future<TonAddress>
getNftContent({required TonProvider rpc, required NFTItemData nftData}) Future<String>
getNFTItemContractByIndex<T extends WalletContractTransferParams<OutAction>>({required BigInt index, required TonProvider rpc, required WalletContract<ContractState, T> owner}) Future<NFTItemContract<T>>
getState({required TonProvider rpc}) Future<AccountStateResponse>
get account state (balance, code, data , etc.)
inherited
getStateStack({required TonProvider rpc, required String method, TonAddress? address, List stack = const [], bool throwOnFail = true}) Future<RunMethodResponse>
call contract methods
inherited
isActive(TonProvider rpc) Future<bool>
check if contract is initialized.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
royaltyParams(TonProvider rpc) Future<RoyaltyParams>
sendMessage({required TonProvider rpc, required Message exMessage}) Future<String>
inherited
sendOperation({required E params, required TonProvider rpc, required BigInt amount, required NFTCollectionOperation operation, int sendMode = SendModeConst.payGasSeparately, int? timeout, bool? bounce, bool bounced = false, Cell? body}) Future<String>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromAddress<E extends WalletContractTransferParams<OutAction>>({required WalletContract<dynamic, E> owner, required TonAddress address, required TonProvider rpc}) Future<NFTCollectionContract<WalletContractTransferParams<OutAction>>>