# sign

Signs a `ContractParametersContext` with the current wallet.

This method is usually used in multi-signature workflows.

## Parameters

#### 1. context *(required)*

`ContractParametersContext`

## Returns

`Promise<ContractParametersContext>`

The same context object with one or more signatures added.

## Errors

| Code    | Name          | Description                                        |
| ------- | ------------- | -------------------------------------------------- |
| `10001` | `UNSUPPORTED` | The wallet does not support this operation.        |
| `10002` | `INVALID`     | The context payload is invalid.                    |
| `10003` | `NOTFOUND`    | The signing account cannot be found in the wallet. |
| `10005` | `TIMEOUT`     | The signing request timed out.                     |
| `10006` | `CANCELED`    | The user rejected the signature request.           |

## Example

### Request

```js
const signedContext = await provider.sign({
  type: 'Neo.Network.P2P.Payloads.Transaction',
  hash: '9ec26f10d2da8d4dc6ddf68893318660ed234e9d5173ddb146fe955067c17a8d',
  data: 'AJ80ThdAQg8AAAAAAHCTAAAAAAAAdmjmAAEKstQadGt9Gi0vwZ7fSt3chVB8mgEAWgsCQA0DAAwUvfdhkjTHOXEg9FzagIK2pzKs83kMFAqy1Bp0a30aLS/Bnt9K3dyFUHyaFMAfDAh0cmFuc2ZlcgwUz3bii9AGLEpHjuNVYQETGfPPpNJBYn1bUgA=',
  items: {
    '9a7c5085dcdd4adf9ec12f2d1a7d6b741ad4b20a': {
      script: '',
      parameters: [],
      signatures: {}
    }
  },
  network: 894710606
});
```

### Response

```js
{
  type: 'Neo.Network.P2P.Payloads.Transaction',
  hash: '9ec26f10d2da8d4dc6ddf68893318660ed234e9d5173ddb146fe955067c17a8d',
  data: 'AJ80ThdAQg8AAAAAAHCTAAAAAAAAdmjmAAEKstQadGt9Gi0vwZ7fSt3chVB8mgEAWgsCQA0DAAwUvfdhkjTHOXEg9FzagIK2pzKs83kMFAqy1Bp0a30aLS/Bnt9K3dyFUHyaFMAfDAh0cmFuc2ZlcgwUz3bii9AGLEpHjuNVYQETGfPPpNJBYn1bUgFCDEBnDmZinpnEG685XDQMsPj9na88G1cbShrMC61QDuZaE1Fq/f+qG94gT4UtWpYcCjS6lbr8sLSfyls1cls34qiIKAwhAiZPRP6EiofBMkyH3bF7Ks3anXm8APlUncIpMGTDwH5fQVbnsyc=',
  items: {
    '9a7c5085dcdd4adf9ec12f2d1a7d6b741ad4b20a': {
      script: 'DCECJk9E/oSKh8EyTIfdsXsqzdqdebwA+VSdwikwZMPAfl9BVuezJw==',
      parameters: [
        {
          name: 'signature',
          type: 'Signature',
          value: 'Zw5mYp6ZxBuvOVw0DLD4/Z2vPBtXG0oazAutUA7mWhNRav3/qhveIE+FLVqWHAo0upW6/LC0n8pbNXJbN+KoiA=='
        }
      ],
      signatures: {
        '02264f44fe848a87c1324c87ddb17b2acdda9d79bc00f9549dc2293064c3c07e5f': 'Zw5mYp6ZxBuvOVw0DLD4/Z2vPBtXG0oazAutUA7mWhNRav3/qhveIE+FLVqWHAo0upW6/LC0n8pbNXJbN+KoiA=='
      }
    }
  },
  network: 894710606
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tutorial.neoline.io/reference/neo3-provider-api/sign.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
