phantom / docs

31 stars 17 forks source link

Can't create new window.solana.Transaciton() through JS #27

Closed DaDukyDev closed 2 years ago

DaDukyDev commented 2 years ago

I am trying to initiate a Solana transaction, using the wallet as a provider, however, it shows that the wallet itself does not have any of the constructors for creating SOL transactions, or any other constructed classes. Is this something I need to do with an external library?

bfriel commented 2 years ago

Phantom is only intended to sign and send transactions. To create a Solana transaction, you will need to use Solana Web3JS. The section you are looking for can be found here

Phantom is only intended to sign and send transactions. To create a Solana transaction, you will need to use Solana Web3JS. The section you are looking for can be found here.