@sentio/sdk
    Preparing search index...

    Variable DBResponse

    DBResponse: {
        create(
            base?: {
                data?: { [key: string]: any };
                entities?: { entities?: { fields?: { [key: string]: (...) | (...) } }[] };
                entityList?: {
                    entities?: {
                        data?: { fields?: (...) | (...) };
                        entity?: string;
                        genBlockChain?: string;
                        genBlockNumber?: bigint;
                        genBlockTime?: Date;
                    }[];
                };
                error?: string;
                list?: any[];
                nextCursor?: string;
                opId?: bigint;
            },
        ): DBResponse;
        decode(
            input: Uint8Array<ArrayBufferLike> | Reader,
            length?: number,
        ): DBResponse;
        encode(message: DBResponse, writer?: Writer): Writer;
        fromJSON(object: any): DBResponse;
        fromPartial(
            object: {
                data?: { [key: string]: any };
                entities?: {
                    entities?: {
                        fields?: {
                            [key: string]:
                                | undefined
                                | {
                                    bigdecimalValue?: ...;
                                    bigintValue?: ...;
                                    boolValue?: ...;
                                    bytesValue?: ...;
                                    floatValue?: ...;
                                    int64Value?: ...;
                                    intValue?: ...;
                                    listValue?: ...;
                                    nullValue?: ...;
                                    stringValue?: ...;
                                    structValue?: ...;
                                    timestampValue?: ...;
                                    tokenValue?: ...;
                                };
                        };
                    }[];
                };
                entityList?: {
                    entities?: {
                        data?: { fields?: { [key: ...]: ... } };
                        entity?: string;
                        genBlockChain?: string;
                        genBlockNumber?: bigint;
                        genBlockTime?: Date;
                    }[];
                };
                error?: string;
                list?: any[];
                nextCursor?: string;
                opId?: bigint;
            },
        ): DBResponse;
        toJSON(message: DBResponse): unknown;
    }

    Type Declaration

    • create: function
      • Parameters

        • Optionalbase: {
              data?: { [key: string]: any };
              entities?: { entities?: { fields?: { [key: string]: (...) | (...) } }[] };
              entityList?: {
                  entities?: {
                      data?: { fields?: (...) | (...) };
                      entity?: string;
                      genBlockChain?: string;
                      genBlockNumber?: bigint;
                      genBlockTime?: Date;
                  }[];
              };
              error?: string;
              list?: any[];
              nextCursor?: string;
              opId?: bigint;
          }

        Returns DBResponse

    • decode: function
      • Parameters

        • input: Uint8Array<ArrayBufferLike> | Reader
        • Optionallength: number

        Returns DBResponse

    • encode: function
      • Parameters

        Returns Writer

    • fromJSON: function
      • Parameters

        • object: any

        Returns DBResponse

    • fromPartial: function
      • Parameters

        • object: {
              data?: { [key: string]: any };
              entities?: {
                  entities?: {
                      fields?: {
                          [key: string]:
                              | undefined
                              | {
                                  bigdecimalValue?: ...;
                                  bigintValue?: ...;
                                  boolValue?: ...;
                                  bytesValue?: ...;
                                  floatValue?: ...;
                                  int64Value?: ...;
                                  intValue?: ...;
                                  listValue?: ...;
                                  nullValue?: ...;
                                  stringValue?: ...;
                                  structValue?: ...;
                                  timestampValue?: ...;
                                  tokenValue?: ...;
                              };
                      };
                  }[];
              };
              entityList?: {
                  entities?: {
                      data?: { fields?: { [key: ...]: ... } };
                      entity?: string;
                      genBlockChain?: string;
                      genBlockNumber?: bigint;
                      genBlockTime?: Date;
                  }[];
              };
              error?: string;
              list?: any[];
              nextCursor?: string;
              opId?: bigint;
          }

        Returns DBResponse

    • toJSON: function
      • Parameters

        Returns unknown