function copyRequest(req): PreparedTransactionRequest

Returns a copy of req with all properties coerced to their strict types.

Parameters

ParameterTypeDescription
reqTransactionRequestThe transaction request to copy.

Returns

PreparedTransactionRequest

The prepared transaction request.

Throws

If the request is invalid.

Source

providers/provider.ts:419