dApp Development
When developing decentralized applications, it often helps to test against private local testnets that can be created and destroyed as needed.
Launch Private Testnet
docker run --rm -p 2024:2024 giraffechain/node:dev
- Take note of a line near the top of the logs that looks like this:
INFO Testnet - Testnet Staker 0: A498AybCn9K9Btmar1tKnyR8...
Copy the long string of text after the:
. - Open the wallet in your browser
- Select the "Public" wallet (this is a shared wallet meant for testing purposes)
- Select the "Stake" Button. Click the little "warning" triangle to enter advanced mode. Paste the string from the previous text into the
Import
input. ClickImport
. - Click "Start".
Blocks should be produced automatically in the background. You can now use normal Wallet and/or SDK functionality.
Development
To create a decentralized application, you can use the TypeScript SDK. Using a funded wallet, you can add new data to the ledger-wide graph. If you can model your application or idea using objects and relations, you can probably store it on the Giraffe Chain!