@vechain/sdk-core
Version:
This module is crafted for dApp development and various blockchain operations that seamlessly unfold offline
36 lines (30 loc) • 733 B
TypeScript
/**
* Simple type for transaction clause.
*/
interface TransactionClause {
/**
* Destination address where:
* * transfer token to or
* * invoke contract method on.
*
* @note Set null destination to deploy a contract.
*/
to: string | null;
/**
* Amount of token to transfer to the destination
*/
value: string | number;
/**
* Input data for contract method invocation or deployment
*/
data: string;
/**
* Optional comment for the clause, helpful for displaying what the clause is doing.
*/
comment?: string;
/**
* Optional ABI for the contract method invocation.
*/
abi?: string;
}
export type { TransactionClause };