# op.sign · Rell standard library · Chromia Docs (concept)

> function sign(keypairs: list < keypair >): tx Create a test transaction builder containing this test operation call, and add the keypairs in
the given list

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/op/sign/

FUNCTION

# op.sign

```signature
function sign(keypairs: list<keypair>): tx
```

Create a test transaction builder containing this test operation call, and add the keypairs in
the given list as signers of the test transaction.

When the returned test transaction builder is built, the transaction will be signed with all
keypairs in the list.

**Parameters**

* **keypairs** — the list of keypairs with which to sign the returned transaction

**Returns**

a test transaction builder with this test operation call and given signers

Since 0.10.4

---

```signature
function sign(keypairs: keypair...): tx
```

Create a test transaction builder containing this test operation call, and add the given
keypairs as signers of the test transaction.

When the returned test transaction builder is built, the transaction will be signed with all
given keypairs.

**Parameters**

* **keypairs** — the keypairs with which to sign the returned transaction

**Returns**

a test transaction builder with this test operation call and given signers

Since 0.10.4

---

```signature
function sign(privkeys: list<byte_array>): tx
```

Create a test transaction builder containing this test operation call, and add the private keys
in the given list as signers of the test transaction.

When the returned test transaction builder is built, the transaction will be signed with all
private keys in the list.

**Parameters**

* **privkeys** — the list of private keys with which to sign the returned transaction

**Returns**

a test transaction builder with this test operation call and given signers

Since 0.10.4

---

```signature
function sign(privkeys: byte_array...): tx
```

Create a test transaction builder containing this test operation call, and add the given private
keys as signers of the test transaction.

When the test transaction builder is built, the transaction will be signed with all given
private keys.

**Parameters**

* **privkeys** — the private keys with which to sign the returned transaction

**Returns**

a test transaction builder with this test operation call and given signers

Since 0.10.4

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/rell.test/op/sign.html)Generated API reference, mirrored from the live docs
