mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Consistent testnet-then-mainnet ordering
This commit is contained in:
parent
49fe5c3d5f
commit
71808ca367
@ -77,6 +77,20 @@ curl --data '{"address":"<YOUR ADDRESS>"}' -H "Content-Type: application/json" -
|
||||
|
||||
See the page about [Ocean Tokens](/concepts/ocean-tokens/).
|
||||
|
||||
### Get Testnet Ocean Tokens
|
||||
|
||||
All Squid libraries have methods to request Ocean Tokens. They work by calling the "Dispenser" keeper contract, a contract which is only deployed to testnets. Therefore they will only work in testnets. They're documented in the following places:
|
||||
|
||||
- The squid-js docs for:
|
||||
- [OceanAccounts.requestTokens()](/references/squid-js/#OceanAccounts-requestTokens)
|
||||
- [Account.requestTokens()](/references/squid-js/#Account-requestTokens)
|
||||
- The squid-py docs for:
|
||||
- [the `squid_py.ocean.ocean_tokens` module](https://squid-py.readthedocs.io/en/develop/api/squid_py.ocean.ocean_tokens.html): see the `request()` method.
|
||||
- [the `squid_py.ocean.ocean_accounts` module](https://squid-py.readthedocs.io/en/develop/api/squid_py.ocean.ocean_accounts.html): see the `request_tokens()` method.
|
||||
- [The squid-java docs](https://www.javadoc.io/doc/com.oceanprotocol/squid/): click "All Classes" then "AccountsManager" then scroll to the bottom of the Class AccountsManager page where you'll find the `requestTokens()` method.
|
||||
|
||||
The [Example Code page](/tutorials/example-code/) has links to example Squid code (in all of the languages), including examples of using the above methods.
|
||||
|
||||
### Get Mainnet Ocean Tokens
|
||||
|
||||
There were several ways to acquire some of the Mainnet Ocean Tokens in the initial circulating supply, including:
|
||||
@ -94,17 +108,3 @@ As of 7 May 2019, there was one exchange in the official list of exchanges listi
|
||||
In the future, the Ocean Mainnet will be launched and later it will become possible to move Ocean Tokens from the Ethereum Mainnet to the Ocean Mainnet.
|
||||
|
||||
In the future, it will become possible to earn Mainnet Ocean Tokens as network rewards and in other ways. The [Ocean Protocol Technical Whitepaper](https://oceanprotocol.com/tech-whitepaper.pdf) gives more details.
|
||||
|
||||
### Get Testnet Ocean Tokens
|
||||
|
||||
All Squid libraries have methods to request Ocean Tokens. They work by calling the "Dispenser" keeper contract, a contract which is only deployed to testnets. Therefore they will only work in testnets. They're documented in the following places:
|
||||
|
||||
- The squid-js docs for:
|
||||
- [OceanAccounts.requestTokens()](/references/squid-js/#OceanAccounts-requestTokens)
|
||||
- [Account.requestTokens()](/references/squid-js/#Account-requestTokens)
|
||||
- The squid-py docs for:
|
||||
- [the `squid_py.ocean.ocean_tokens` module](https://squid-py.readthedocs.io/en/develop/api/squid_py.ocean.ocean_tokens.html): see the `request()` method.
|
||||
- [the `squid_py.ocean.ocean_accounts` module](https://squid-py.readthedocs.io/en/develop/api/squid_py.ocean.ocean_accounts.html): see the `request_tokens()` method.
|
||||
- [The squid-java docs](https://www.javadoc.io/doc/com.oceanprotocol/squid/): click "All Classes" then "AccountsManager" then scroll to the bottom of the Class AccountsManager page where you'll find the `requestTokens()` method.
|
||||
|
||||
The [Example Code page](/tutorials/example-code/) has links to example Squid code (in all of the languages), including examples of using the above methods.
|
||||
|
Loading…
Reference in New Issue
Block a user