Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Script failed to connect to Testnet and Livenet. #2

Open
Winners786 opened this issue Dec 28, 2020 · 0 comments
Open

Script failed to connect to Testnet and Livenet. #2

Winners786 opened this issue Dec 28, 2020 · 0 comments

Comments

@Winners786
Copy link

use IEXBase\RippleAPI\Contracts\TransactionBuilderContract;
use IEXBase\RippleAPI\Support\TransactionType;

include_once 'vendor/autoload.php';

$address = "Wallet address here";
$secretKey = "ss Secret key here";


$ripple = new \IEXBase\RippleAPI\Ripple($address, $secretKey);

try {
    $transfer = $ripple->buildTransaction(function (TransactionBuilderContract $item)
    {
        return $item
            ->setAmount(1)
            ->setDestinationTag(1)
            ->setDestination('Receiver address here')
            ->setTransactionType(TransactionType::PAYMENT)
            ->sign();
    })->submit();

} catch (Exception $e) {
    die($e->getMessage());
}

echo var_dump($transfer);

cURL error 7: Failed to connect to s.altnet.rippletest.net port 51234: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://s.altnet.rippletest.net:51234/

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant