koinos-rpc
Version:
Typescript library to communicate with Koinos API via RPC
37 lines (36 loc) • 855 B
TypeScript
export interface TransactionHeader {
chain_id: string;
rc_limit: string;
nonce: string;
operation_merkle_root: string;
payer: string;
}
export interface Operation {
call_contract?: {
contract_id: string;
entry_point: string;
args: string;
};
upload_contract?: any;
set_system_call?: any;
set_system_contract?: any;
}
export interface Transaction {
id: string;
header: TransactionHeader;
operations: Operation[];
signatures: string[];
containing_blocks: string[];
}
export declare type ContractMethodName = string;
export interface ContractMethod {
argument: string;
return: string;
'entry-point': string;
description: string;
'read-only': boolean;
}
export interface Abi {
methods: Record<ContractMethodName, ContractMethod>;
types: string;
}