project-serum / sol-wallet-adapter

Other
185 stars 93 forks source link

Solana Staking account not activated #52

Closed SenudaJayalath closed 2 years ago

SenudaJayalath commented 2 years ago

After creating the staking account, I tried to retrieve it using let stakeState = await connection.getStakeActivation(stakeAccount.publicKey);. But it gives an error as follows Invalid param: stake account not initialized.

When I search for the address on the solana explorer I can see the account as a staking account. How long will it take to get activated? I am using the devnet at the moment