Sending & Receiving
Learn more about sending and receiving your assets
You may want to send assets to your players, request for them to send you assets, or even request for them to send each other assets.
This can all be achieved by using one simple query.
The Enjin API provides a query that allows you to send unlimited Fungible (FT) and up to 100 Non-Fungible assets (NFT) to up to 150 users, with one single transaction.

Step 1: Advanced Send

You can use Enjin’s advanced send query to send assets from you to your players; from your players to you, or from your players to each other.
1
mutation {
2
AdvancedSendAsset(
3
transfers: {
4
from: "WalletAddress"
5
to: "WalletAddress"
6
assetId: "788000000000089f"
7
assetIndex: "0000000000000001"
8
value: "1"
9
}
10
) {
11
transactionId
12
id
13
state
14
value
15
asset{name id}
16
user{name}
17
}
18
}
Copied!

Step 2: View Transaction Status

If you want to check the status of the advanced send transaction to find out when it has been executed, you can do so by using the following query:
1
query {
2
GetTransaction(id: xxxxx) {
3
id
4
transactionId
5
title
6
contract
7
type
8
user{id, name}
9
userId
10
value
11
state
12
accepted
13
projectWallet
14
project{id, name}
15
asset{id, name}
16
}
17
}
Copied!
Automatically Signing Transactions
Many of these steps involve creating blockchain transactions that need to be signed via your Enjin Wallet. We have created a Wallet Daemon that can sign these transactions automatically.
IMPORTANT: Please be aware that using a wallet daemon will mean that ANY transaction that is generated via your App Secret will be signed automatically. Please ensure there is no way for any unauthorized party to access your App Secret and process unapproved transactions.
Last modified 1mo ago