klay_signTransactionAsFeePayer

Constructs a transaction with given parameters and signs the transaction with a fee payer's private key.

This method can be used either to generate a fee payer signature or to make a final raw transaction that is ready to submit to Klaytn network. In case you just want to extract the fee-payer signature, simply take the feePayerSignatures from the result. Note that the raw transaction is not final if the sender's signature is not attached (that is, signatures in tx is empty).

Parameters

The required parameters depend on the transaction type. Check the proper parameters in Klaytn Docs.

Return Value

TypeDescription

raw

Signed raw transaction

tx

Transaction object including the fee payer's signature

Example

// Request
curl -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "klay_signTransactionAsFeePayer", "params": [{"typeInt&