Skip to content

v1.0.10

Choose a tag to compare

@leon-do leon-do released this 15 Nov 18:34
· 581 commits to main since this release

Dynamic multicall for any EVM chain/network

example here

async void Start()
{
    string chain = "anyChain";
    string network = "anyNetwork";
    string contract = "0xA74E199990FF572A320508547Ab7f44EA51e6F28";
    string[] tokenIds = {"700", "791"};
    string multicall = "0xMulticallContractAddress"; // optional: multicall contract https://github.com/makerdao/multicall
    string rpc = "https://anyrpc.com"; // optional: custom rpc

    List<string> batchOwners = await ERC721.OwnerOfBatch(chain, network, contract, tokenIds, multicall, rpc);
    foreach (string owner in batchOwners)
    {
        print ("OwnerOfBatch: " + owner);
    }
}