Approve
Approve forwards an allowance update to the implementation bound to the current realm.
Parameters:
- _: leading integer discriminator for the realm-crossing ABI; pass 0.
- rlm: propagated realm context used to resolve and invoke the registered token implementation.
- tokenKey: registry key identifying the GRC20 token.
- spender: address authorized to spend the caller's tokens.
- amount: number of token base units to authorize.
Returns:
- error: nil when the implementation records the allowance; otherwise a token validation or approval-rule error.
Command
gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/common.Approve(,,,,)"
Result