murtaza.vohra / vechain_sdk
VeChain SDK. APIs to create token, hash and generate VID.
Installs: 50
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/murtaza.vohra/vechain_sdk
Requires
- ext-curl: *
- ext-json: *
This package is auto-updated.
Last update: 2026-01-11 15:29:03 UTC
README
$ve_chain_sdk = new \VeChainSDK\VeChainSDK($app_id, $app_key, $operator_uid);
$request_number = time() . rand(111111111, 999999999);
$vid_response = $ve_chain_sdk->generateVID($request_number);
$data_hash = hash('sha256', 'murtaza@alchemytech.ca');
$vid = '';
$request_number = time() . rand(111111111, 999999999);
$hash_response = $ve_chain_sdk->createHash($data_hash, $vid, $request_number);
Notes
- Call functions asynchronously to get the success response from the VeChain ToolChain
- Request number is the only way to get the updated statuses
- Statuses are... draft, init, processing, success