@roochnetwork/sdk
Version:
18 lines (13 loc) • 451 B
text/typescript
// Copyright (c) RoochNetwork
// SPDX-License-Identifier: Apache-2.0
import { Arg, TypeTag, FunctionId, AnnotatedFunctionResultView, Bytes } from '../types'
export interface IProvider {
getRpcApiVersion(): Promise<string | undefined>
getChainId(): number
executeViewFunction(
funcId: FunctionId,
tyArgs?: TypeTag[],
args?: Arg[],
): Promise<AnnotatedFunctionResultView>
sendRawTransaction(playload: Bytes): Promise<string>
}