lib/BlockCypher/Api/Address.php
public static function create($addressKeyChain = null, $apiContext = null, $restCall = null)
    {
        if ($addressKeyChain === null) {
            $payLoad = "";
        } else {
            // multisig address
            $payLoad = $addressKeyChain->toJSON();
        }

        $chainUrlPrefix = self::getChainUrlPrefix($apiContext);

        $json = self::executeCall(
            "$chainUrlPrefix/addrs",
            "POST",
            $payLoad,
            null,
            $apiContext,
            $restCall
        );
        $ret = new AddressKeyChain();
        $ret->fromJson($json);
        return $ret;
    }
public static function create($addressKeyChain = null, $apiContext = null, $restCall = null)
    {
        if ($addressKeyChain === null) {
            $payLoad = "";
        } else {
            // multisig address
            $payLoad = $addressKeyChain->toJSON();
        }

        $chainUrlPrefix = self::getChainUrlPrefix($apiContext);

        $json = self::executeCall(
            "$chainUrlPrefix/addrs",
            "POST",
            $payLoad,
            null,
            $apiContext,
            $restCall
        );
        $ret = new AddressKeyChain();
        $ret->fromJson($json);
        return $ret;
    }
public static function create ( $ addressKeyChain = null , $ apiContext = null , $ restCall = null ) { if ( $ addressKeyChain === null ) { $ payLoad = "" ; } else { // multisig address $ payLoad = $ addressKeyChain -> toJSON ( ) ; } $ chainUrlPrefix = self :: getChainUrlPrefix ( $ apiContext ) ; $ json = self :: executeCall ( "$chainUrlPrefix/addrs" , "POST" , $ payLoad , null , $ apiContext , $ restCall ) ; $ ret = new AddressKeyChain ( ) ; $ ret -> fromJson ( $ json ) ; return $ ret ; }
Create a new address.

@deprecated since version 1.2. Use AddressClient.
@param AddressKeyChain $addressKeyChain
@param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
@param BlockCypherRestCall $restCall is the Rest Call Service that is used to make rest calls
@return AddressKeyChain
Create a new address .