mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Updated page re getting Ether or Ocean tokens
This commit is contained in:
parent
21a65f5790
commit
0a8182a627
@ -7,6 +7,8 @@ If you want to interact with an Ethereum-based network that supports Ocean Proto
|
||||
|
||||
At the time of writing, there were some public testnets you could use to test an Ocean Protocol application. For more information about those, see the page about [testnets](/concepts/testnets/).
|
||||
|
||||
Note: This page _doesn't_ explain how to get Ether or Ocean Tokens for use in the Ocean Mainnet ("Pacific" or "Pacific PoA Network"). We'll add that in the future.
|
||||
|
||||
## Get a Compatible Wallet
|
||||
|
||||
You will need a [wallet that can hold Ether (for any Ethereum network) and Ocean Tokens (for any Ethereum network)](/concepts/wallets/). For the purpose of this tutorial, you can use MetaMask. See [our tutorial about how to set up MetaMask](/tutorials/metamask-setup/).
|
||||
@ -25,7 +27,7 @@ You can get Kovan Ether (KEth), for the Kovan Testnet, from a Kovan faucet: see
|
||||
|
||||
### Get Ether for the Nile Testnet
|
||||
|
||||
At the time of writing, there was no easy way to get Ether for the Nile Testnet.
|
||||
At the time of writing, there was no easy way to get Ether for the Nile Testnet. We may set up a Nile Ether faucet, so check back from time to time.
|
||||
|
||||
### Get Ether for a Local Ganache-Based Testnet
|
||||
|
||||
@ -33,18 +35,16 @@ If you're running a local Ganache-based testnet, then it creates several account
|
||||
|
||||
### Get Ether for a Local Spree Testnet
|
||||
|
||||
If you're running a local Spree testnet, then you can send some Ether to `<YOUR ADDRESS>` using the command:
|
||||
**Option 1:** If you're running a local Spree testnet, then you can send some Spree Ether to `<YOUR ADDRESS>` using the following command (a long command that wraps around):
|
||||
|
||||
```bash
|
||||
curl --data '{"jsonrpc":"2.0","method":"personal_sendTransaction","params":[{"from":"0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e","to":"<YOUR ADDRESS>","value":"0x7FFFFFFFFFFFFFFFFFF"}, "node0"],"id":0}' -H "Content-Type: application/json" -X POST localhost:8545
|
||||
```
|
||||
`curl --data '{"jsonrpc":"2.0","method":"personal_sendTransaction","params":[{"from":"0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e","to":"<YOUR ADDRESS>","value":"0x7FFFFFFFFFFFFFFFFFF"}, "node0"],"id":0}' -H "Content-Type: application/json" -X POST localhost:8545`
|
||||
|
||||
That command uses [Ethereum's JSON RPC API](https://wiki.parity.io/JSONRPC.html). You can also create a new account using the Parity Ethereum CLI. See [the Parity Ethereum CLI documentation](https://wiki.parity.io/CLI-Sub-commands).
|
||||
|
||||
**Option 2:** Another option is to run [the Ocean faucet server](https://github.com/oceanprotocol/faucet) on your machine, with default configuration settings. The default settings enable it to dispense Spree Ether. To ask the faucet to send some Spree Ether to `<YOUR ADDRESS>`, use the command (a long command that wraps around):
|
||||
|
||||
`curl --data '{"address":"<YOUR ADDRESS>"}' -H "Content-Type: application/json" -X POST localhost:3001/faucet`
|
||||
|
||||
## Get Ocean Tokens
|
||||
|
||||
One way to get some Ocean Tokens, for the network you're connected to, is by running Pleuston (a demo Ocean marketplace web app) and then clicking in the top right corner of the Pleuston user interface. If you see "Make it rain" then click that.
|
||||
|
||||
Running Pleuston, along with all the software it needs to work, is beyond the scope of this tutorial. If you want to do _that_, then the current best option is to use the scripts and Docker Compose files in the [🐳 barge repository](https://github.com/oceanprotocol/barge).
|
||||
|
||||
<repo name="barge"></repo>
|
||||
It used to be possible to get Ocean Tokens by clicking Pleuston's "Make it rain" button, but that used an Ocean Protocol keeper function that has been removed for security reasons. The "Make it rain" button might be made to work again in the future, but only in testnets.
|
||||
|
Loading…
x
Reference in New Issue
Block a user