txApi

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxGroup

type TxGroup struct {
	// contains filtered or unexported fields
}

func NewTxGroup

func NewTxGroup() (TxGroup, error)

func (*TxGroup) BatchMint

func (txGroup *TxGroup) BatchMint(c *gin.Context)

@Summary mint nft @Produce json @Param order_id formData string true "game orderId" @Param token_uri formData string true "nft tokenUri" @Param cb formData string true "game callBack url address" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /tx-api/v1/hotWallet/mint [post]

func (*TxGroup) BatchWithdrawNFT

func (txGroup *TxGroup) BatchWithdrawNFT(c *gin.Context)

@Summary withdraw nft @Produce json @Param order_id formData string true "game orderId" @Param to_address formData string true "tx toAddress" @Param token_id formData int true "nft token id" @Param contract_address formData string true "nft contract address" @Param cb formData string true "game callBack url address" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /tx-api/v1/hotWallet/withdrawNFT [post]

func (*TxGroup) BatchWithdrawToken

func (txGroup *TxGroup) BatchWithdrawToken(c *gin.Context)

@Summary withdraw token @Produce json @Param order_id formData string true "game orderId" @Param to_address formData string true "tx toAddress" @Param amount formData string true "tx token amount" @Param contract_address formData string true "token contract address(native : 0x0000000000000000000000000000000000000000)" @Param cb formData string true "game callBack url address" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /tx-api/v1/hotWallet/withdrawToken [post]

func (*TxGroup) ImportNft

func (txGroup *TxGroup) ImportNft(c *gin.Context)

@Summary import nft @Produce json @Param order_id formData string true "game orderId" @Param from_address formData string true "tx fromAddress" @Param contract_address formData string true "nft contract address" @Param token_id formData int true "nft token id" @Param tx_hash formData string true "tx hash" @Param cb formData string true "game callBack url address" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /tx-api/v1/client/importNft [post]

func (*TxGroup) InitTxGroup

func (txGroup *TxGroup) InitTxGroup(g *gin.RouterGroup)

func (*TxGroup) RechargeToken

func (txGroup *TxGroup) RechargeToken(c *gin.Context)

@Summary recharge token @Produce json @Param order_id formData string true "game orderId" @Param from_address formData string true "tx fromAddress" @Param amount formData string true "tx token amount" @Param contract_address formData string true "token contract address(native : 0x0000000000000000000000000000000000000000)" @Param tx_hash formData string true "tx hash" @Param cb formData string true "game callBack url address" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /tx-api/v1/client/rechargeToken [post]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL