getApprovedAll(contract, owner)

Feature

Returns the accounts which the owner give approved-all permission.

Parameters

string contract address, string owner

data of SuccessResponse

object information about the accounts which the owner give approved-all permission

example

const contractAddress = "0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca";
const owner = "0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca";

// Note: an asynchronous request.
const NFTInfo = async () => {
  const info = await mitum.nft.getApprovedAll(contractAddress, owner);
  console.log(info.data);
};

NFTInfo();

//output
{
   _hint: "mitum-nft-all-approved-book-v0.0.1",
   all_approved: ["0x239977a2D97d306a91Dc259d28203875C3A48727fca"]
}

Last updated