You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I create a new account using the following two methods, there is no fund by default and cannot be transferred.
use the @solana/web3.js
import{Keypair}from"@solana/web3.js";constkeypair=Keypair.generate();console.log(`The public key is: `,keypair.publicKey.toBase58());
Error message:
throw new SendTransactionError(
^
SendTransactionError: failed to send transaction: Transaction simulation failed: Transaction results in an account (1) with insufficient funds for rent
at Connection.sendEncodedTransaction (D:\web3_code\solana_learn\node_modules\@solana\web3.js\src\connection.ts:5921:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at Connection.sendRawTransaction (D:\web3_code\solana_learn\node_modules\@solana\web3.js\src\connection.ts:5880:20)
at Connection.sendTransaction (D:\web3_code\solana_learn\node_modules\@solana\web3.js\src\connection.ts:5868:12)
at sendAndConfirmTransaction (D:\web3_code\solana_learn\node_modules\@solana\web3.js\src\utils\send-and-confirm-transaction.ts:35:21)
at <anonymous> (d:\web3_code\solana_learn\solanatransfer.ts:50:53) {
logs: [
'Program 11111111111111111111111111111111 invoke [1]',
'Program 11111111111111111111111111111111 success'
]
}
Node.js v18.18.2
use solana cli
solana-keygen new --force
solana transfer HV4egCuRfqnoGipQxVGRLLVRRfbmPH6EWdxKDKdyLktg 0.1
Error message:
Error: The recipient address (HV4egCuRfqnoGipQxVGRLLVRRfbmPH6EWdxKDKdyLktg) is not funded. Add `--allow-unfunded-recipient` to complete the transfer
Proposed Solution
use solana cli
solana transfer --allow-unfunded-recipient 9w4egkmzj6Byop2iEA8ecP3m65zVn9ayNFFD1DNSdNPA 0.1
use the @solana/web3.js
I don't know how to deal with this problem, like I don't know why the newly created account is unfunded and can't be transferred
The text was updated successfully, but these errors were encountered:
We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of Solana itself.
Questions like yours deserve a purpose-built Q&A forum. Unless there exists evidence that this is a bug with Solana itself, please post your question to the Solana Stack Exchange using this link: https://solana.stackexchange.com/questions/ask
This automated message is a result of having added the ‘question’ tag.
Problem
When I create a new account using the following two methods, there is no fund by default and cannot be transferred.
@solana/web3.js
Error message:
Error message:
Proposed Solution
@solana/web3.js
I don't know how to deal with this problem, like I don't know why the newly created account is unfunded and can't be transferred
The text was updated successfully, but these errors were encountered: