Skip to Content
API Reference@cfxdevkit/reactUseTransactionReturn

@cfxdevkit/react


@cfxdevkit/react / UseTransactionReturn

Interface: UseTransactionReturn

Defined in: hooks/useTransaction.ts:40

Properties

error?

optional error: Error

Defined in: hooks/useTransaction.ts:43


isLoading

isLoading: boolean

Defined in: hooks/useTransaction.ts:42


reset()

reset: () => void

Defined in: hooks/useTransaction.ts:45

Returns

void


send()

send: (options) => Promise<TransactionResult>

Defined in: hooks/useTransaction.ts:41

Parameters

options

SendTransactionOptions

Returns

Promise<TransactionResult>


transaction?

optional transaction: TransactionResult

Defined in: hooks/useTransaction.ts:44