o3-dapi-ont
Version:
Ontology Plugin for o3-dapi
19 lines (15 loc) • 371 B
text/typescript
import { sendMessage } from '../../../messaging';
import { StakeCommand } from '../constants';
interface GetTotalStakeArgs {
network: string;
address: string;
}
interface TotalStake {
amount: number;
}
export function getTotalStake(data: GetTotalStakeArgs): Promise<TotalStake> {
return sendMessage({
command: StakeCommand.getTotalStake,
data,
});
}