localhost网络中的Solana空投tcp错误


-> solana-keygen (BIP39 none)
-> config be url as localhost
-> Phantom localhost nwtwork
-> airdrop specifying the key, pubkey, and --url on localhost.

这些步骤,在我看来是正确的,返回以下错误:

Error: RPC request error: cluster version query failed: error sending request for url (http://localhost/): error trying to connect: tcp connect error: Nenhuma conexão pôde ser feita porque a máquina de destino as recusou ativamente. (os error 10061)```

使用solana-test-validator运行本地验证器时,默认情况下主RPC端口为8899,因此需要将http://localhost:8899指定为集群URL。

最新更新