Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

grc20reg/v0 package

Function

TransferFrom

func TransferFrom(_ int, rlm realm, tokenKey string, from, to address, amount int64)

TransferFrom spends an allowance with the CALLING REALM as the spender.

Note the allowance direction this implies: `from` must have approved the calling realm, not the signing user. That is the supported way for a realm to move a user's funds — the user grants the realm an allowance, and the realm draws on it as itself, so every debit is one the owner authorized against that specific realm.

Params

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nt/grc20reg/v0.TransferFrom(,,,,,)"

Result