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

Transfer all TRX balance from address #168

Open
frmiqueias opened this issue Apr 27, 2023 · 0 comments
Open

Transfer all TRX balance from address #168

frmiqueias opened this issue Apr 27, 2023 · 0 comments

Comments

@frmiqueias
Copy link

I need to transfer all balance from an address, but when I try the default example of sent the transaction is not registered on the network!

$tron->setAddress('address');
$tron->setPrivateKey('privateKey');

try {
$transfer = $tron->send( 'ToAddress', 100.6666);
} catch (\IEXBase\TronAPI\Exception\TronException $e) {
die($e->getMessage());
}

I suspect that the problem is that I send all the amount and there is no balance left for the fee, how could I debit the amount of the fee from the amount to be sent?

Thanks.

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

No branches or pull requests

1 participant