dag_sendMetagraphDataTransaction
Sends a new data transaction to the selected metagraph.
Parameters
Name
Type
Description
MetagraphId
String
The metagraph id.
Data
Object<any>
The transaction data object.
SendDataTransactionResponse
type SendDataTransactionResponse = {
hash: string;
feeHash?: string;
};
Return Type
Object<SendDataTransactionResponse>
- An object that includes both transaction hash and fee hash (optional)
Example
await provider.request({
method: "dag_sendMetagraphDataTransaction",
params: [
"DAG1ocZbNdp8GYAktqwjVyCRR1CpqaUQNi82gUwk",
{
MintCollection: {
name: "One collection"
}
}
],
});
// {
// hash: "2d9fe9bad17debed7c903f22b74aac8af270daea7995dd099a58d6b201547169",
// feeHash: "0a5feeeac5a0c62f776c9b4bd887c77caf495c331c94fa5d43d7a2bbf24e3ef1"
// }
Last updated
Was this helpful?