Documentation
¶
Index ¶
Constants ¶
View Source
const ( LIGHTER_URL = "https://mainnet.zklighter.elliot.ai/api" TX_NOT_FOUND_RETRIES = 3 TX_NOT_FOUND_RETRY_WAIT = 500 * time.Millisecond TX_NOT_FOUND_ERROR_CODE = 21500 TX_FOUND_STATUS_CODE = 200 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LighterAPI ¶
func NewLighterAPI ¶
func NewLighterAPI() *LighterAPI
type LighterError ¶ added in v0.5.9
func (*LighterError) Error ¶ added in v0.5.9
func (e *LighterError) Error() string
type LighterTx ¶
type LighterTx struct {
Code uint64 `json:"code"`
Hash string `json:"hash"`
Type TxType `json:"type"`
Info string `json:"info"`
L1Address string `json:"l1_address"`
Transfer *Transfer
}
func (*LighterTx) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.