# dag\_sendMetagraphDataTransaction

Sends a new data transaction to the selected metagraph.

**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>

SendDataTransactionResponse

```typescript
type SendDataTransactionResponse = {
  hash: string;
  feeHash?: string;
};
```

**Return Type**

`Object<SendDataTransactionResponse>` - An object that includes both transaction hash and fee hash (optional)

**Example**

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

//  { 
//    hash: "2d9fe9bad17debed7c903f22b74aac8af270daea7995dd099a58d6b201547169", 
//    feeHash: "0a5feeeac5a0c62f776c9b4bd887c77caf495c331c94fa5d43d7a2bbf24e3ef1"
//  }
```
