Skip to content

UseUploadSimpleProps

Defined in: synapse-react/src/warm-storage/use-upload-simple.ts:9

Options shared by the write hooks that can sign with a session key.

optional mutation?: Omit<MutateOptions<{ addMessageOk: true; confirmedPieceIds: bigint[]; confirmedTxHash?: `0x${string}`; dataSetId: bigint; pieceCount: number; piecesAdded: true; txHash: `0x${string}`; txStatus: "confirmed"; }, Error, UseUploadSimpleVariables, unknown>, "mutationFn">

Defined in: synapse-react/src/warm-storage/use-upload-simple.ts:14


optional onHash?: (hash) => void

Defined in: synapse-react/src/warm-storage/use-upload-simple.ts:13

The callback to call when the hash is available.

ParameterType
hashstring

void


optional sessionKey?: SessionKey<"Secp256k1"> | null

Defined in: synapse-react/src/signer.ts:14

The session key to sign storage provider (EIP-712) operations with. If not provided, the connected wallet signs.

SessionKeySignerOptions.sessionKey