# dag\_signMetagraphDataTransaction

Sends a new data transaction to the selected metagraph and returns signatures in the response.

**Parameters**

<table><thead><tr><th width="180.95703125">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>MetagraphId</td><td><code>String</code></td><td>The metagraph id.</td></tr><tr><td>Data</td><td><code>Object&#x3C;any></code></td><td>The transaction data object.</td></tr></tbody></table>

SignDataTransactionResponse

```typescript
type SignDataTransactionResponse = {
  hash: string;
  feeHash?: string;
  signature: string;
  feeSignature?: string;
};
```

**Return Type**

`Object<SignDataTransactionResponse>` - An object that includes transaction hash, fee hash (optional), signature and feeSignature (optional)

**Example**

```typescript
await provider.request({
  method: "dag_signMetagraphDataTransaction",
  params: [
    "DAG1ocZbNdp8GYAktqwjVyCRR1CpqaUQNi82gUwk",
    {
      MintCollection: {
        name: "One collection"
      }
    }
  ],
});

//  { 
//    hash: "2d9fe9bad17debed7c903f22b74aac8af270daea7995dd099a58d6b201547169", 
//    feeHash: "0a5feeeac5a0c62f776c9b4bd887c77caf495c331c94fa5d43d7a2bbf24e3ef1",
//    signature: "3045022100b35798008516373fcc6eef75fe8e322ce8fe0dccc4802b052f3ddc7c6b5dc2900220154cac1e4f3e7d9a64f4ed9d2a518221b273fe782f037a5842725054f1c62280",
//    feeSignature: "5432022100b35798008516373fcc6eef75fe8e322ce8fe0dccc4802b052f3ddc7c6b5dc2900220154cac1e4f3e7d9a64f4ed9d2a518221b273fe782f037a5842725054f1c62280"
//  }
```
