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
{{ message }}
Repository navigation
Solana: port transaction submission API from web3.js #40
@mschneider
Added the requestAirdrop function
I have two questions before I create a new PR
How do I write a new test
Since the hash that that gets returned by the rpc client changes everytime
There isn't really anything that can be compared to check if the test passed.
The rpc_url_ that you seem to be using in all the post request is set to the main net which doesn't have the requestAirdrop method
So, should I set the post requestAirdrop url to devnet or testnet?
I noticed that the some of the new methods return json as response type. Please make sure you parse the json responses and created proper types for them, similar to what web3.js does. This will help users of the API to leverage type based auto completion to use the library more efficiently.
Activity
[-]port transaction submission API from web3.js[/-][+]Solana: port transaction submission API from web3.js[/+]aniketfuryrocks commentedon Sep 28, 2022
Willing to work on this
Lioncat2002 commentedon Sep 28, 2022
Willing to work on this as well
Lioncat2002 commentedon Sep 29, 2022
@mschneider
Added the
requestAirdropfunctionI have two questions before I create a new PR
Since the hash that that gets returned by the rpc client changes everytime
There isn't really anything that can be compared to check if the test passed.
rpc_url_that you seem to be using in all the post request is set to the main net which doesn't have therequestAirdropmethodSo, should I set the post
requestAirdropurl todevnetortestnet?mschneider commentedon Sep 30, 2022
requestAidrop should increase the sol balance of the wallet
mschneider commentedon Sep 30, 2022
you can specify devnet url when creating the Connection object
Pull #40 (#42)
mschneider commentedon Oct 8, 2022
@Lioncat2002 @aniketfuryrocks
I noticed that the some of the new methods return
jsonas response type. Please make sure you parse the json responses and created proper types for them, similar to what web3.js does. This will help users of the API to leverage type based auto completion to use the library more efficiently.aniketfuryrocks commentedon Oct 9, 2022