Bluerprints
Get Connection Url
Output values:
Return Value:
{ "url": string, "connectionToken": string }
Get Authentication
Input values:
ConnectionToken:
string
- a connection token that is received after the Get Connection URL request.
Output values:
Return Value:
{ "address": string }
Get ERC20Balance by Owner
Input values:
Game Id:
string
- This is an id of your game. You can get your game ID in the dashboard on in the contract.Owner Address String:
string
- This is an address of an entity you'd like to know the balance in ERC20 Tokens.
Output values:
Return Value:
{ "ERC20Balances" :[{"ERC20": string, "amount": int}] }
- The balance in ERC20 tokens for the given address.
Get ERC721Token by Owner
Input values:
Game Id:
string
- This is an id of your game. You can get your game ID in the tryangle dashboard on in the tryangle contract.Owner Address String:
string
- This is an address of an entity you'd like to know the balance in ERC721 Tokens.
Output values:
Return Value:
{ "ERC721Balance": [{"ERC721": string, "balance": int}] }
- The balance in ERC721 tokens for the given address.
Transfer ERC20 From User
Action:
User will be redirected in browser for transfering tokens using browser wallet.
Input values:
Game Id:
string
- This is an id of your game. You can get your game ID in the dashboard on in the contract.ERC20Token:
string
- The address of the ERC20 token you'd like to transfer.Amount:
int
- The amount of ERC20 tokens to transfer in minimal units.Owner Address String:
string
- This is an address of an entity which would like to transfer tokens.Recipient Address String:
string
- This is an address of an entity that will receive ERC20 tokens.
Output values:
Return Value:
{ "result": string }
- the transaction address.
Transfer ERC721 From User
Action:
User will be redirected in browser for transfering tokens using browser wallet.
Input values:
Game Id:
string
- This is an id of your game. You can get your game ID in the dashboard on in the contract.ERC721Token:
string
- The address of the ERC721 token you'd like to transfer.TokenId:
string
- The token amount of ERC721 you'd like to transfer.Owner Address String:
string
- This is an address of an entity which would like to transfer tokens.Recipient Address String:
string
- This is an address of an entity that will receive ERC20 tokens.
Output values:
Return Value:
{ "result": string }
- the transaction address.
Transfer ERC20 QR From User
Action:
The transaction will be sent to the device of the user used for authorization
Input values:
Game Id:
string
- This is an id of your game. You can get your game ID in the dashboard on in the contract.ERC20Token:
string
- The address of the ERC20 token you'd like to transfer.Amount:
int
- The amount of ERC20 tokens to transfer in minimal units.Owner Address String:
string
- This is an address of an entity which would like to transfer tokens.Recipient Address String:
string
- This is an address of an entity that will receive ERC20 tokens.
Output values:
Return Value:
{ "result": string }
- the transaction address.
Transfer ERC721 QR From User
Action:
The transaction will be sent to the device of the user used for authorization
Input values:
Game Id:
string
- This is an id of your game. You can get your game ID in the dashboard on in the contract.ERC721Token:
string
- The address of the ERC721 token you'd like to transfer.TokenId:
string
- The token amount of ERC721 you'd like to transfer.Owner Address String:
string
- This is an address of an entity which would like to transfer tokens.Recipient Address String:
string
- This is an address of an entity that will receive ERC20 tokens.
Output values:
Return Value:
{ "result": string }
- the transaction address.
Transfer ERC20 To User
Action:
This blueprint transfer approved ERC20 token from owner and spend deposited gas.
Input values:
Game Id:
int
- This is an id of your game. You can get your game ID in the dashboard on in the contract.ERC20Token:
string
- The address of the ERC20 token you'd like to transfer.Token Amount:
int
- The token amount of ERC20 you'd like to transfer.Owner Address String:
string
- This is an address of an entity which would like to transfer tokens.Recipient Address String:
string
- This is an address of an entity that will receive ERC721 tokens.
Output values:
Return Value:
{ "result": string }
- the transaction address.
Transfer ERC721 To User
Action:
This blueprint transfer approved ERC721 token from owner and spend deposited gas.
Input values:
Game Id:
int
- This is an id of your game. You can get your game ID in the dashboard on in the contract.ERC721Token:
string
- The address of the ERC721 token you'd like to transfer.TokenId:
string
- The token amount of ERC721 you'd like to transfer.Owner Address String:
string
- This is an address of an entity which would like to transfer tokens.Recipient Address String:
string
- This is an address of an entity that will receive ERC721 tokens.
Output values:
Return Value:
{ "result": string }
- the transaction address.
Last updated