UNPKG

@signumjs/contracts

Version:

Smart Contracts package for Signum Network

17 lines (16 loc) 644 B
/** * Copyright (c) 2019 Burst Apps Team */ import { Contract } from './typings/contract'; /** * Extracts a variables value as hexadecimal string from a contract's machine data * * This is a generic function to extract arbitrary data from a contract. It's recommended to use the {@link ContractDataView} class instead * * @param contract The contract * @param position The variables position * @param length The length of data to be extracted * @return The value as hexadecimal string (already considering endianness) * */ export declare function getContractDatablock(contract: Contract, position: number, length?: number): string;