OnFinality
New RPC users get 35% off their first monthView the offer
OnFinality Learn
Network & Protocol Guides3 min read

Verify a Starknet Paymaster-Sponsored Transaction

Verify that a Starknet paymaster accepted sponsorship and that the intended call succeeded on-chain.

TL;DR

Verify that a Starknet paymaster accepted sponsorship and that the intended call succeeded on-chain.

Decide what sponsorship should cover

Use a test account and one known call with an observable result. Check that the account supports the paymaster flow and select the provider’s sponsored mode. Record the chosen mode and the provider’s accepted quote or build response before signing.

Verify the intended effect

Submit the signed request with the same paymaster configuration. Use the returned hash to fetch starknet_getTransactionReceipt on the same network. Inspect execution_status and confirm the expected event or state change. Record the actual_fee alongside the sponsorship record so support can reconcile the transaction.

Separate sponsor rejection from a reverted call

If sponsorship is rejected before a hash is returned, check the provider policy, the chosen account and the allowed call. If the receipt contains a revert, use the transaction failure reason and verify the contract inputs. Inspect the finished receipt before sending the same operation again.

Network connection settings · Official documentation

Never Worry about Infrastructure Again

OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.

Get Started