TransferToken
TransferToken transfers token units from the community pool to an address.
Parameters:
- cur: current realm context; callers use cross(cur) when crossing into this realm
- tokenPath: registry key/path of the registered token to transfer
- to: recipient address for the token units
- amount: number of token units to transfer; transfer failure panics through the safe wrapper
Only callable by admin or governance while withdrawals are not halted. Governance is the recommended normal route. While governance is not yet mature, admin access is retained for emergency-only use as an operational policy, not a contract-enforced condition. Admin calls do not require an approved proposal; emergency status is not checked and admin access does not expire automatically.
Command
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/gnoswap/community_pool/v1" -func "TransferToken" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "gnoland-1" -remote "http://127.0.0.1:26657" ADDRESSgnokey query -remote "http://127.0.0.1:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/community_pool/v1" -func "TransferToken" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "gnoland-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "http://127.0.0.1:26657" call.tx