Grants permissions from a specified address (which must have admin or grant rights). This allows controlling which address pays for the transaction and acts as the grantor.
Usage
mc_grant_from(
conn,
from_address,
to_address,
permissions,
native_amount = 0,
start_block = NULL,
end_block = NULL
)Arguments
- conn
A connection object created by
mc_connect.- from_address
Character string. The address granting the permissions.
- to_address
Character string. The address receiving the permissions.
- permissions
Character string. Comma‑separated list of permissions.
- native_amount
Numeric. Amount of native currency to send along with the grant (default 0).
- start_block
Optional integer. Block height from which the permission becomes valid. If
NULL, the permission starts immediately.- end_block
Optional integer. Block height at which the permission expires. If
NULL, the permission never expires.