Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Added support for mainnet transactions #11

Merged
merged 13 commits into from
Jan 11, 2021
Merged

Added support for mainnet transactions #11

merged 13 commits into from
Jan 11, 2021

Conversation

jasny
Copy link
Member

@jasny jasny commented Jan 9, 2021

$seedText = "...";
$account = (new LTO\AccountFactory('T'))->seed($seedText);

$node = new LTO\PublicNode('https://nodes.lto.network');

$amount = 1000e8; // Amount of LTO to transfer * 10^8
$recipient = "3Jo1JCrBvnWCg37VDxMXAjYhsS9rRDLBSze";

$transferTx = (new LTO\Transaction\Transfer($amount, $recipient))
    ->signWith($account)
    ->broadcastTo($node);

Seed wasn't being trimmed.
Added PublicNode which can fetch and broadcast transactions to the LTO public node.

Pass
Fixes for PublicNode.
- Association
- Lease / Cancel Lease
- Sponsor / Cancel Sponsor
- MassTransfer

Tests still need to be written.
Fixed `Association::toBinary()` for association with a hash.
Other fixes found by test.
Fixed issue with `Account::DecryptFrom()`
Fixed `AccountFactory::assertIsValid()`
@jasny jasny merged commit ab5bb9c into master Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant