Fenguoz / tron-php

Support TRON's TRX and TRC20, which include functions such as address creation, balance query, transaction transfer, query the latest blockchain, query information based on the blockchain, and query information based on the transaction hash
MIT License
200 stars 72 forks source link

error in transform #28

Open majid66zare opened 2 years ago

majid66zare commented 2 years ago

Hi fenguoz, i faced an error using your Trc20 wallet library I get wallet inventory accurately, but my problem is in transfer, I created origin address by ((privateKeyToAddress)) method. the destination address created by this method: new \Tron\Address( $To_address, '', $trc20Wallet->tron->address2HexString($To_address)); after running my code this error occured : "Transfer Fail" and error message is "Contract validate error : account does not exist" while account is exist. please help me. kindly.

Fenguoz commented 2 years ago

Try transferring money from other wallets to this address

majid66zare commented 2 years ago

Hi, Sorry I cannot understand what do you mean exactly, Can you explain more clearly? I made the origin address by your library. I could get the inventory from it correctly and I could transfer money from other addresses to this address. All these two work correctly and fine but I have face up an error. Bellow, I described the error: I have 5 dollars in my wallet and I want to transfer my money from this address to another address but an error occurred while transferring. The error is: "Transfer Fail" I insert all data correctly and I have 5 dollars in my wallet. Can you please help me? Thanks in advance.

Fenguoz commented 2 years ago

Whether the address has enough trx as a fee,or Is the bandwidth of the address sufficient?

majid66zare commented 2 years ago

Sorry bothering you I have another question How much trx (minimum trx) do I need for a transaction to transfer successfully? Does fee change (increase) by changing in the amount of usdt which I want to transfer? For instance, for transferring 5 dollars, how much trx do I need to have in my wallet? Tnx in advance.

‫‪Fenguoz‬‏ @.***‬‏> در تاریخ دوشنبه ۹ مه ۲۰۲۲ ساعت ۱۹:۱۵ نوشت:‬

Whether the address has enough trx as a fee

— Reply to this email directly, view it on GitHub https://github.com/Fenguoz/tron-php/issues/28#issuecomment-1121199577, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRNVVMXW6UGU377BWEPMZ3VJEQKHANCNFSM5VKKW7TQ . You are receiving this because you authored the thread.Message ID: @.***>

majid66zare commented 2 years ago

Hi I transfer 5 Trons in my wallet for transition fee and try to transfer 2 dollars to another address but it gives me an error: here is the error: ((Account resource insufficient error.16:12))

I should rememorize that I have 5 dollars in my wallet and try to transfer several times with different price 5, 2, 1 but in every time it returns the error above. Please guide me. Thanks.

‫‪Majid Zare‬‏ @.***‬‏> در تاریخ سه‌شنبه ۱۰ مه ۲۰۲۲ ساعت ۱۳:۵۴ نوشت:‬

Sorry bothering you I have another question How much trx (minimum trx) do I need for a transaction to transfer successfully? Does fee change (increase) by changing in the amount of usdt which I want to transfer? For instance, for transferring 5 dollars, how much trx do I need to have in my wallet? Tnx in advance.

‫‪Fenguoz‬‏ @.***‬‏> در تاریخ دوشنبه ۹ مه ۲۰۲۲ ساعت ۱۹:۱۵ نوشت:‬

Whether the address has enough trx as a fee

— Reply to this email directly, view it on GitHub https://github.com/Fenguoz/tron-php/issues/28#issuecomment-1121199577, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRNVVMXW6UGU377BWEPMZ3VJEQKHANCNFSM5VKKW7TQ . You are receiving this because you authored the thread.Message ID: @.***>

majid66zare commented 2 years ago

Hi I transfer 5 Trons in my wallet for transition fee and try to transfer 2 dollars to another address but it gives me an error: here is the error: ((Account resource insufficient error.16:12))

I should rememorize that I have 5 dollars in my wallet and try to transfer several times with different price 5, 2, 1 but in every time it returns the error above. Please guide me. Thanks.

majid66zare commented 2 years ago

Hi, Sorry I cannot understand what do you mean exactly, Can you explain more clearly? I made the origin address by your library. I could get the inventory from it correctly and I could transfer money from other addresses to this address. All these two work correctly and fine but I have face up an error. Bellow, I described the error: I have 5 dollars in my wallet and I want to transfer my money from this address to another address but an error occurred while transferring. The error is: "Transfer Fail" I insert all data correctly and I have 5 dollars in my wallet. Can you please help me? Thanks in advance.

‫‪Fenguoz‬‏ @.***‬‏> در تاریخ دوشنبه ۹ مه ۲۰۲۲ ساعت ۵:۱۷ نوشت:‬

Try transferring money from other wallets to this address

— Reply to this email directly, view it on GitHub https://github.com/Fenguoz/tron-php/issues/28#issuecomment-1120524178, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRNVVKD733DWDXVQXENWCLVJBOC7ANCNFSM5VKKW7TQ . You are receiving this because you authored the thread.Message ID: @.***>