Documentation ¶
Index ¶
- type SeroConfig
- type Trader
- func (t *Trader) BulkTransfer(ctx context.Context, records [][]string)
- func (t Trader) CheckTx(ctx context.Context, txHash string) (blockNumber uint64, err error)
- func (t Trader) ClearUsedFlag(ctx context.Context) error
- func (t *Trader) Close()
- func (t Trader) GenTx(ctx context.Context, to string, currency string, amount *big.Int) (gtx txtool.GTx, err error)
- func (t Trader) GetBalance(ctx context.Context) (balance *big.Int, err error)
- func (t Trader) GetBlockNumber(ctx context.Context) (blockNumber uint64, err error)
- func (t Trader) GetMaxAvailable(ctx context.Context) (balance *big.Int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SeroConfig ¶
type Trader ¶
type Trader struct { Rpc string From string Refund string Gas *big.Int GasPrice *big.Int // contains filtered or unexported fields }
func NewTrader ¶
func NewTrader(cfg SeroConfig) (t *Trader, err error)
func (*Trader) BulkTransfer ¶
func (Trader) GetBalance ¶
func (Trader) GetBlockNumber ¶
curl -X POST 'http://47.92.64.129:8545' -H 'Content-Type:application/json' -d '{ "id": 0, "jsonrpc": "2.0", "method": "sero_blockNumber", "params": [] }'
{"jsonrpc":"2.0","id":0,"result":"0x302a"}
Click to show internal directories.
Click to hide internal directories.