Type alias Provider

Provider: {
    get accountName(): string;
    get address(): string;
    get providerName(): string;
    balance(final): Promise<bigint>;
    buyRolls(amount, opts?): Promise<Operation>;
    callSC(params): Promise<Operation>;
    deploySC(params): Promise<SmartContract>;
    getEvents(filter): Promise<SCEvent[]>;
    getNodeStatus(): Promise<NodeStatusInfo>;
    getOperationStatus(opId): Promise<OperationStatus>;
    getStorageKeys(address, filter, final?): Promise<Uint8Array[]>;
    networkInfos(): Promise<Network>;
    readSC(params): Promise<ReadSCData>;
    readStorage(address, keys, final?): Promise<Uint8Array[]>;
    sellRolls(amount, opts?): Promise<Operation>;
    sign(data): Promise<SignedData>;
    transfer(to, amount, opts?): Promise<Operation>;
}

Defines the expected structure for a provider.

Type declaration