getJettonData method
Future<({InternalAddress adminAddress, Cell content, bool mintable, BigInt totalSupply, Cell walletCode})>
getJettonData()
inherited
Returns a jetton data as a record
Throws 'ContractProvider field was not initialized' if provider
is null
Implementation
Future<
({
BigInt totalSupply,
bool mintable,
InternalAddress adminAddress,
Cell content,
Cell walletCode,
})> getJettonData() async {
if (provider == null) {
throw 'ContractProvider field was not initialized';
}
var res = await provider!.get('get_jetton_data', []);
var totalSupply = res.stack.readBigInt();
var mintable = res.stack.readBool();
var adminAddress = res.stack.readAddress();
var content = res.stack.readCell();
var walletCode = res.stack.readCell();
return (
totalSupply: totalSupply,
mintable: mintable,
adminAddress: adminAddress,
content: content,
walletCode: walletCode,
);
}