lib/BlockCypher/Client/MicroTXClient.php
public function create(MicroTX $microTX, $apiContext = null, $restCall = null)
    {
        $payLoad = $microTX->toJSON();

        $chainUrlPrefix = $this->getChainUrlPrefix($apiContext);

        $json = $this->executeCall(
            "$chainUrlPrefix/txs/micro",
            "POST",
            $payLoad,
            null,
            $apiContext,
            $restCall
        );
        $microTX->fromJson($json);
        return $microTX;
    }
public function create(MicroTX $microTX, $apiContext = null, $restCall = null)
    {
        $payLoad = $microTX->toJSON();

        $chainUrlPrefix = $this->getChainUrlPrefix($apiContext);

        $json = $this->executeCall(
            "$chainUrlPrefix/txs/micro",
            "POST",
            $payLoad,
            null,
            $apiContext,
            $restCall
        );
        $microTX->fromJson($json);
        return $microTX;
    }
public function create ( MicroTX $ microTX , $ apiContext = null , $ restCall = null ) { $ payLoad = $ microTX -> toJSON ( ) ; $ chainUrlPrefix = $ this -> getChainUrlPrefix ( $ apiContext ) ; $ json = $ this -> executeCall ( "$chainUrlPrefix/txs/micro" , "POST" , $ payLoad , null , $ apiContext , $ restCall ) ; $ microTX -> fromJson ( $ json ) ; return $ microTX ; }
Create a new MicroTX.

@param MicroTX $microTX
@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 MicroTX
Create a new MicroTX .