Is It Possible to Switch from User Fee Payer to Global Fee Payer?
Before getting into the details on how to switch to GFP, let's first discuss what GFP is and how it is different from UFP.
First, GFP (Global Fee Payer) is a service that allows BApp's operators to pay fees in arrears, instead of making customers pay for the transaction costs incurred in operating the service.
Because Ground X constantly monitors the balances, it reduces the burden on customers to constantly purchase or recharge KLAY.
Conversely, when using UFP (User Fee Payer), the customer will create a separate pool that pays and manages the fees themselves. For more information about GFP, please refer to the posts regarding charging mechanism of GFP and general information on GFP.
[Change Method]
For customers who are using the UFP through a contract created through Caver, the GFP cannot be set up directly using KAS. In this case, you can enable GFP by issuing RLP encoded transactions. First of all, please change to SenderSigned→transaction.getRLP by referring to the example below and the document so that KAS, not sender, pays the fee.
Example : > transaction.getRLPEncoding()
'0x09f885018505d21dba00830f4240947b65b75d204abed71587c9e519a89277766ee1d00a9404bb86a1b16113ebe8f57071f839b002cbcbf7d0f847f845820feaa068e56f3da7fbe7a86543eb4b244ddbcb13b2d1cb9adb3ee8a4c8b046821bc492a068c29c057055f68a7860b54184bba7967bcf42b6aae12beaf9f30933e6e730c280c4c3018080'
Please refer to Klaytn Design - Transaction for specific instructions on creating an RLP encoding string for each transaction type.
Next, change the fee ratio setting to '0'. Fee ratio refers to the ratio (1%-99%) to be paid by the feePayer out of the total transaction fee. In the case of GFP, KAS fee payer account pays for the transaction fee, therefore it should be set to '0' so that the user does not bear the cost.
For additional inquiries, click on Inquiry Registration at the top of the KAS Help Center page if you are using a paid plan, or leave a post on the KAS community if you are using a free plan.
Thank you.