Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ For Token ID management, head to [Best Practices > TokenID Structure](/02-guides
:::info Explore More Arguments
For a comprehensive view of all available arguments for queries and mutations, please refer to our [API Reference](/03-api-reference/03-api-reference.md). This resource will guide you on how to use the GraphiQL Playground to explore the full structure and functionality of our API.

`createToken` also accepts `cap`, `attributes`, and `groups` (token-group membership). To sign with a managed wallet instead of the Wallet Daemon, set `signerAccount` on `CreateTransaction`.
`createToken` also accepts `cap`, `attributes`, and `groups` (token-group membership). To sign with a managed wallet instead of the Wallet Daemon, set `signerAddress` on `CreateTransaction`.
:::

:::tip What's next?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ For Token ID management, head to [Best Practices > TokenID Structure](/02-guides
:::info Explore More Arguments
For a comprehensive view of all available arguments for queries and mutations, please refer to our [API Reference](/03-api-reference/03-api-reference.md). This resource will guide you on how to use the GraphiQL Playground to explore the full structure and functionality of our API.

In addition to the fields shown above, `createToken` accepts `cap`, `behavior` (currency / royalty configuration), `attributes`, and `groups` (token-group membership). To sign with a managed wallet instead of the Wallet Daemon, set `signerAccount` on `CreateTransaction`.
In addition to the fields shown above, `createToken` accepts `cap`, `behavior` (currency / royalty configuration), `attributes`, and `groups` (token-group membership). To sign with a managed wallet instead of the Wallet Daemon, set `signerAddress` on `CreateTransaction`.
:::

:::tip What's next?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ Check the [Best Practices for Collection/Token Metadata](/02-guides/01-platform/
:::info Explore More Arguments
For a comprehensive view of all available arguments for queries and mutations, please refer to our [API Reference](/03-api-reference/03-api-reference.md). This resource will guide you on how to use the GraphiQL Playground to explore the full structure and functionality of our API.

To sign with a managed wallet instead of the Wallet Daemon, set `signerAccount` on `CreateTransaction`.
To sign with a managed wallet instead of the Wallet Daemon, set `signerAddress` on `CreateTransaction`.
:::

:::tip What's next?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ Once it reaches `FINALIZED`, a `MultiTokens.Minted` event is emitted for each re
:::info Explore More Arguments
For a comprehensive view of all available arguments for queries and mutations, please refer to our [API Reference](/03-api-reference/03-api-reference.md). This resource will guide you on how to use the GraphiQL Playground to explore the full structure and functionality of our API.

If you want to create _and_ mint new tokens together, use `createTokens` instead of `mintTokens`. To sign with a managed wallet instead of the Wallet Daemon, set `signerAccount` on `CreateTransaction`.
If you want to create _and_ mint new tokens together, use `createTokens` instead of `mintTokens`. To sign with a managed wallet instead of the Wallet Daemon, set `signerAddress` on `CreateTransaction`.
:::

:::tip You've minted a token!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -685,5 +685,5 @@ Once a transfer transaction reaches `FINALIZED`, a `MultiTokens.Transferred` eve
:::info Explore More Arguments
For a comprehensive view of all available arguments for queries and mutations, please refer to our [API Reference](/03-api-reference/03-api-reference.md). This resource will guide you on how to use the GraphiQL Playground to explore the full structure and functionality of our API.

To sign with a managed wallet instead of the Wallet Daemon, set `signerAccount` on `CreateTransaction` / `CreateBatchTransaction`.
To sign with a managed wallet instead of the Wallet Daemon, set `signerAddress` on `CreateTransaction` / `CreateBatchTransaction`.
:::
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ For each of these actions, an event is emitted once the transaction reaches `FIN
:::info Explore More Arguments
For a comprehensive view of all available arguments for queries and mutations, please refer to our [API Reference](/03-api-reference/03-api-reference.md). This resource will guide you on how to use the GraphiQL Playground to explore the full structure and functionality of our API.

To sign with a managed wallet instead of the Wallet Daemon, set `signerAccount` on `CreateTransaction`.
To sign with a managed wallet instead of the Wallet Daemon, set `signerAddress` on `CreateTransaction`.
:::

:::tip Need to send a transaction request to user's wallet?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,25 +170,25 @@ Every on-chain action is created through the `CreateTransaction` mutation — th
'Authorization': 'Bearer my-auth-key',
},
body: JSON.stringify({
query: `mutation CreateTransaction($signerAccount: String!) {
query: `mutation CreateTransaction($signerAddress: String!) {
CreateTransaction(
network: CANARY,
chain: MATRIX,
signerAccount: $signerAccount,
signerAddress: $signerAddress,
transaction: { createCollection: {} }
) {
uuid
encodedData
}
}`,
variables: {
signerAccount: req.query.address
signerAddress: req.query.address
}
})
});
```

We are also passing the `signerAccount`. This is necessary so your daemon doesn't sign the transaction.
We are also passing the `signerAddress`. This is necessary so your daemon doesn't sign the transaction.
In the mutation response, we're asking for the `uuid` and `encodedData`, which we will use in the next step.

### Step #2: Sending the Transaction Request to user's wallet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ By default, every transaction the Enjin Platform creates is signed by your [Wall
Both `CreateTransaction` and `CreateBatchTransaction` accept two optional arguments for this:

- **`signerExternalId`** — the managed wallet's `externalId`. This is the most direct option, as you don't need to look the wallet's public key up first.
- **`signerAccount`** — the managed wallet's public key, as returned by [`GetManagedWallet`](#finding-a-managed-wallet).
- **`signerAddress`** — the managed wallet's public key, as returned by [`GetManagedWallet`](#finding-a-managed-wallet).

Set either one, and the platform signs that transaction with the corresponding managed wallet instead of the Wallet Daemon. Because these arguments live on `CreateTransaction` itself, **any** on-chain action — a transfer, a listing, an attribute change, anything you set on the `transaction` input — can be performed as a managed wallet.

Expand Down Expand Up @@ -901,7 +901,7 @@ print(response.json())
</TabItem>
</Tabs>

Make sure `signerExternalId` (or `signerAccount`) is set to the managed wallet that holds the token being transferred.
Make sure `signerExternalId` (or `signerAddress`) is set to the managed wallet that holds the token being transferred.

Whether you're minting into a managed wallet or transferring out of one, the on-chain transaction emits the usual events on `FINALIZED` (e.g. `MultiTokens.Minted`, `MultiTokens.Transferred`) — with the managed wallet's address as the signer. See [Working with Events](/05-enjin-platform/03-working-with-events.md) for how to read them.

Expand Down
Loading
Loading