• getAddress is a utility that will retrieve the contract address for a contract that is part of the Card Protocol in the specified network. The easiest way to use this function is to just pass your web3 instance to the function, and the function will query the web3 instance to see what network it is currently using. You can also just pass in the network name.

    Example

    let daiCpxdToken = await getAddress("daiCpxd", web3);
    let daiToken = await getAddress("daiToken", web3);
    let foreignBridge = await getAddress("foreignBridge", web3);
    let homeBridge = await getAddress("homeBridge", web3);
    let prepaidCardManager = await getAddress("prepaidCardManager", web3);

    Parameters

    Returns Promise<string>

  • Parameters

    Returns Promise<string>

Generated using TypeDoc