Approve SRR By Commitment
To know the methods calling to Startrail API from Startrail-Sdk-Js
approveSRRByCommitment()
approveSRRByCommitment()How to complete ownership transfer with transferByReveal
How to generate revealHash
import { bufferToHex, keccak256 } from 'ethereumjs-util'
const revealHash = bufferToHex(keccak256(Buffer.from('message')))Method parameters
Variable
Type
Description
TransferMetadata
Variable
Type
Description
Lang
Variable
Type
Description
Sample Code for Generating the revealHash Value
Parameters Example
Returns
Response
Variable
Type
Description
Error
Response Example
Last updated
Was this helpful?