Create a Marketplace
The backbone for a permissioned marketplace for you to mint tokens, create accounts, and to send to your users after purchase.
Overview
Creating an account
Imports
use Trustenterprises\LaravelHashgraph\LaravelHashgraph;
use Trustenterprises\LaravelHashgraph\Models\AccountCreateResponse;Code
$account = LaravelHashgraph::createAccount(); // Returns AccountCreateResponse
// Get the Authorised user from a controller.
$user = \Auth::user();
// Update the fields of the user.
$user->encrypted_id = $account->getEncryptedKey();
$user->public_key = $account->getPublicKey();
$user->hedera_id = $account->getAccountId();
// Persist to storage.
$user->save();Creating a token
Imports
Code
Bequesting a token
Imports
Code
Last updated