# create_message_from_template · FT4 Rell API · Chromia Docs (concept)

> function create_ message_ from_ template(evm_ auth_ args: evm_auth_args , message_ template: text, args: list<gtv>, nonce: text): text Creates the message 

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.auth/create_message_from_template/

FUNCTION

# create\_message\_from\_template

```signature
function create_message_from_template(evm_auth_args: evm_auth_args, message_template: text, args: list<gtv>, nonce: text): text
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/auth/authentication.rell#lines-362)

Creates the message that should be signed on an EVM wallet to approve the given operation.

Throws `"MISCONFIGURED MESSAGE"` if the template doesn't have a nonce placeholder or
a blockchain RID placeholder, both of which should be added to the template in advance by
`utils.make_auth_message`

**Parameters**

* **evm\_auth\_args** — the arguments for the `evm_auth` operation
* **message\_template** — the template for this operation's message
* **args** — the arguments to this operation
* **nonce** — the nonce that should be included to prevent replay attacks

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.core.auth/create_message_from_template.html)Generated API reference, mirrored from the live docs
