stratis-strapjs
Version:
Library for interacting with Stratis smart contracts.
18 lines (17 loc) • 638 B
TypeScript
import { Provider } from './Provider';
import { Observable } from 'rxjs';
export declare class LocalMethodCallOptions {
amount: number;
sender: string;
gasPrice: number;
gasLimit: number;
constructor(amount?: number, sender?: string, gasPrice?: number, gasLimit?: number);
}
export declare class Contract {
static readonly base58Zero: string;
address: string;
provider: Provider;
constructor(address: string, provider: Provider);
balance(): Observable<number>;
callMethodLocally<T>(methodName: string, parameters?: string[], options?: LocalMethodCallOptions): Observable<T>;
}