Documentation ¶
Index ¶
- type TxGroup
- func (txGroup *TxGroup) BatchMint(c *gin.Context)
- func (txGroup *TxGroup) BatchWithdrawNFT(c *gin.Context)
- func (txGroup *TxGroup) BatchWithdrawToken(c *gin.Context)
- func (txGroup *TxGroup) ImportNft(c *gin.Context)
- func (txGroup *TxGroup) InitTxGroup(g *gin.RouterGroup)
- func (txGroup *TxGroup) RechargeToken(c *gin.Context)
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 (*TxGroup) BatchMint ¶
@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 ¶
@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 ¶
@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 ¶
@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 ¶
@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]