Quick Start
This page provides you the basic work flow of using the Trader API.
bloXroute Account - Authorization Header
Add Tip
// Use `Get Tip Wallet Address` method to get a relevant tip address
const tipAddress = "UQDQucnwr0yaahJWiSJqBtM-skV_dlqWkDEP_dF9h9Rvm2Bn"
func generateTipTransfer(from *wallet.Wallet, tip int64, comment string) (*wallet.Message, error) {
tipAmount := tlb.FromNanoTON(big.NewInt(tip))
bta, err := address.ParseAddr(tipAddress)
if err != nil {
return nil, fmt.Errorf("failed to parse tip address: %v", err)
}
if comment == "" {
comment = fmt.Sprintf("tip from %s", from.Address().String())
}
tt, err := from.BuildTransfer(bta, tipAmount, true, comment)
if err != nil {
return nil, fmt.Errorf("failed to generate tip transfer: %v", err)
}
return tt, nil
}Submit to Endpoint
Request example:
Last updated