Documentation
¶
Index ¶
- type AssetType
- type Blockchain
- type CreateEthereumTransactionRequest
- func (m *CreateEthereumTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateEthereumTransactionRequest) MarshalBinary() ([]byte, error)
- func (m *CreateEthereumTransactionRequest) UnmarshalBinary(b []byte) error
- func (m *CreateEthereumTransactionRequest) Validate(formats strfmt.Registry) error
- type CreateMaticTransactionRequest
- func (m *CreateMaticTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateMaticTransactionRequest) MarshalBinary() ([]byte, error)
- func (m *CreateMaticTransactionRequest) UnmarshalBinary(b []byte) error
- func (m *CreateMaticTransactionRequest) Validate(formats strfmt.Registry) error
- type CreateTronTransactionRequest
- func (m *CreateTronTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CreateTronTransactionRequest) MarshalBinary() ([]byte, error)
- func (m *CreateTronTransactionRequest) UnmarshalBinary(b []byte) error
- func (m *CreateTronTransactionRequest) Validate(formats strfmt.Registry) error
- type CreateWalletRequest
- type ErrorResponse
- type ErrorResponseItem
- type EthereumTransaction
- type MaticTransaction
- type TronTransaction
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetType ¶
type AssetType string
AssetType Asset Type
swagger:model assetType
func (AssetType) ContextValidate ¶
ContextValidate validates this asset type based on context it is used
type Blockchain ¶
type Blockchain string
Blockchain Supported blockchain
swagger:model blockchain
const ( // BlockchainBTC captures enum value "BTC" BlockchainBTC Blockchain = "BTC" // BlockchainETH captures enum value "ETH" BlockchainETH Blockchain = "ETH" // BlockchainTRON captures enum value "TRON" BlockchainTRON Blockchain = "TRON" // BlockchainMATIC captures enum value "MATIC" BlockchainMATIC Blockchain = "MATIC" )
func (Blockchain) ContextValidate ¶
ContextValidate validates this blockchain based on context it is used
type CreateEthereumTransactionRequest ¶
type CreateEthereumTransactionRequest struct {
// Raw amount in wei or contract decimals
// Example: 100000000000000000
// Required: true
Amount string `json:"amount"`
// asset type
// Required: true
AssetType AssetType `json:"assetType"`
// ERC-20 contract address
// Example: 0x5e41bc5922370522800103f826c3bb9cd5d83f1a
ContractAddress string `json:"contractAddress,omitempty"`
// Transaction Gas amount
// Example: 3
// Required: true
// Minimum: 1
Gas int64 `json:"gas"`
// Max Fee Per Gas (wei)
// Example: 200000000
// Required: true
MaxFeePerGas string `json:"maxFeePerGas"`
// Max Priority Fee Per Gas (wei)
// Example: 2000000
// Required: true
MaxPriorityPerGas string `json:"maxPriorityPerGas"`
// Network (chain) Id
// Example: 1
// Required: true
NetworkID int64 `json:"networkId"`
// Transaction nonce
// Example: 40
// Required: true
// Minimum: 0
Nonce *int64 `json:"nonce"`
// Recipient address
// Example: 0x5e41bc5922370522800103f826c3bb9cd5d83f1a
// Required: true
Recipient string `json:"recipient"`
}
CreateEthereumTransactionRequest create ethereum transaction request
swagger:model createEthereumTransactionRequest
func (*CreateEthereumTransactionRequest) ContextValidate ¶
func (m *CreateEthereumTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this create ethereum transaction request based on the context it is used
func (*CreateEthereumTransactionRequest) MarshalBinary ¶
func (m *CreateEthereumTransactionRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateEthereumTransactionRequest) UnmarshalBinary ¶
func (m *CreateEthereumTransactionRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateMaticTransactionRequest ¶
type CreateMaticTransactionRequest struct {
// Raw amount in wei or contract decimals
// Example: 100000000000000000
// Required: true
Amount string `json:"amount"`
// asset type
// Required: true
AssetType AssetType `json:"assetType"`
// ERC-20 contract address
// Example: 0x5e41bc5922370522800103f826c3bb9cd5d83f1a
ContractAddress string `json:"contractAddress,omitempty"`
// Transaction Gas amount
// Example: 3
// Required: true
// Minimum: 1
Gas int64 `json:"gas"`
// Max Fee Per Gas (wei)
// Example: 200000000
// Required: true
MaxFeePerGas string `json:"maxFeePerGas"`
// Max Priority Fee Per Gas (wei)
// Example: 2000000
// Required: true
MaxPriorityPerGas string `json:"maxPriorityPerGas"`
// Network (chain) Id
// Example: 1
// Required: true
NetworkID int64 `json:"networkId"`
// Transaction nonce
// Example: 40
// Required: true
// Minimum: 0
Nonce *int64 `json:"nonce"`
// Recipient address
// Example: 0x5e41bc5922370522800103f826c3bb9cd5d83f1a
// Required: true
Recipient string `json:"recipient"`
}
CreateMaticTransactionRequest create matic transaction request
swagger:model createMaticTransactionRequest
func (*CreateMaticTransactionRequest) ContextValidate ¶
func (m *CreateMaticTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this create matic transaction request based on the context it is used
func (*CreateMaticTransactionRequest) MarshalBinary ¶
func (m *CreateMaticTransactionRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateMaticTransactionRequest) UnmarshalBinary ¶
func (m *CreateMaticTransactionRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateTronTransactionRequest ¶
type CreateTronTransactionRequest struct {
// Raw amount in SUN or contract decimals
// Example: 100000
// Required: true
Amount string `json:"amount"`
// asset type
// Required: true
AssetType AssetType `json:"assetType"`
// Contract address is base58
// Example: TTYxentT3sf8XHbtHGyWX2uDgdadE9uYSL
ContractAddress string `json:"contractAddress,omitempty"`
// Contract call fee limit in SUN
FeeLimit int64 `json:"feeLimit,omitempty"`
// Mainnet / Testnet selection
// Example: false
IsTest bool `json:"isTest"`
// Recipient address in base58
// Example: TTYxentT3sf8XHbtHGyWX2uDgdadE9uYSL
// Required: true
Recipient string `json:"recipient"`
}
CreateTronTransactionRequest create tron transaction request
swagger:model createTronTransactionRequest
func (*CreateTronTransactionRequest) ContextValidate ¶
func (m *CreateTronTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this create tron transaction request based on the context it is used
func (*CreateTronTransactionRequest) MarshalBinary ¶
func (m *CreateTronTransactionRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateTronTransactionRequest) UnmarshalBinary ¶
func (m *CreateTronTransactionRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateWalletRequest ¶
type CreateWalletRequest struct {
// blockchain
// Required: true
Blockchain Blockchain `json:"blockchain"`
}
CreateWalletRequest create wallet request
swagger:model createWalletRequest
func (*CreateWalletRequest) ContextValidate ¶
ContextValidate validate this create wallet request based on the context it is used
func (*CreateWalletRequest) MarshalBinary ¶
func (m *CreateWalletRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateWalletRequest) UnmarshalBinary ¶
func (m *CreateWalletRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ErrorResponse ¶
type ErrorResponse struct {
// Errors list
Errors []*ErrorResponseItem `json:"errors"`
// Error Message
// Example: You are unauthenticated
Message string `json:"message,omitempty"`
// Error status
// Example: unauthenticated
Status string `json:"status,omitempty"`
}
ErrorResponse error response
swagger:model ErrorResponse
func (*ErrorResponse) ContextValidate ¶
ContextValidate validate this error response based on the context it is used
func (*ErrorResponse) MarshalBinary ¶
func (m *ErrorResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ErrorResponse) UnmarshalBinary ¶
func (m *ErrorResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ErrorResponseItem ¶
type ErrorResponseItem struct {
// Error field
// Example: username
Field string `json:"field,omitempty"`
// Error Message
// Example: You are unauthenticated
Message string `json:"message,omitempty"`
}
ErrorResponseItem error response item
swagger:model ErrorResponseItem
func (*ErrorResponseItem) ContextValidate ¶
ContextValidate validates this error response item based on context it is used
func (*ErrorResponseItem) MarshalBinary ¶
func (m *ErrorResponseItem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ErrorResponseItem) UnmarshalBinary ¶
func (m *ErrorResponseItem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EthereumTransaction ¶
type EthereumTransaction struct {
// RLP-encoded transaction
// Example: 0xf86e83014b2985048ccb44b1827530944675c7e5baafbffbca748158becba61ef3b0a26387c2a454bcf91b3f8026a0db0be3dcc25213b286e08d018fe8143eb85a3b7bb5cf3749245e907158e9c8daa033c7ec9362ee890d63b89e9dbfcfcb6edd9432321102c1d2ea7921c6cc07009e
RawTransaction string `json:"rawTransaction"`
}
EthereumTransaction ethereum transaction
swagger:model ethereumTransaction
func (*EthereumTransaction) ContextValidate ¶
ContextValidate validates this ethereum transaction based on context it is used
func (*EthereumTransaction) MarshalBinary ¶
func (m *EthereumTransaction) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EthereumTransaction) UnmarshalBinary ¶
func (m *EthereumTransaction) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MaticTransaction ¶
type MaticTransaction struct {
// RLP-encoded transaction
// Example: 0xf86e83014b2985048ccb44b1827530944675c7e5baafbffbca748158becba61ef3b0a26387c2a454bcf91b3f8026a0db0be3dcc25213b286e08d018fe8143eb85a3b7bb5cf3749245e907158e9c8daa033c7ec9362ee890d63b89e9dbfcfcb6edd9432321102c1d2ea7921c6cc07009e
RawTransaction string `json:"rawTransaction"`
}
MaticTransaction matic transaction
swagger:model maticTransaction
func (*MaticTransaction) ContextValidate ¶
ContextValidate validates this matic transaction based on context it is used
func (*MaticTransaction) MarshalBinary ¶
func (m *MaticTransaction) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MaticTransaction) UnmarshalBinary ¶
func (m *MaticTransaction) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TronTransaction ¶
type TronTransaction struct {
// raw data
RawData interface{} `json:"raw_data"`
// raw data hex
RawDataHex string `json:"raw_data_Hex"`
// signature
Signature []string `json:"signature"`
// tx ID
TxID string `json:"txID"`
// visible
Visible bool `json:"visible"`
}
TronTransaction Signed transaction. See https://developers.tron.network/reference/createtransaction
swagger:model tronTransaction
func (*TronTransaction) ContextValidate ¶
ContextValidate validates this tron transaction based on context it is used
func (*TronTransaction) MarshalBinary ¶
func (m *TronTransaction) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TronTransaction) UnmarshalBinary ¶
func (m *TronTransaction) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Wallet ¶
type Wallet struct {
// Address
// Example: 11256099
Address string `json:"address,omitempty"`
// blockchain
Blockchain Blockchain `json:"blockchain"`
// Created At
// Example: 1656696522
CreatedAtUnix int64 `json:"createdAtUnix,omitempty"`
// Wallet UUID
// Example: 123e4567-e89b-12d3-a456-426655440000
ID string `json:"id,omitempty"`
// Public Key
// Example: abc123
PublicKey string `json:"publicKey,omitempty"`
}
Wallet wallet
swagger:model wallet
func (*Wallet) ContextValidate ¶
ContextValidate validate this wallet based on the context it is used
func (*Wallet) MarshalBinary ¶
MarshalBinary interface implementation
func (*Wallet) UnmarshalBinary ¶
UnmarshalBinary interface implementation