8 // POST /create-account-receiver
9 func (bcr *BlockchainReactor) createAccountReceiver(ctx context.Context, ins struct {
10 AccountInfo string `json:"account_info"`
11 ExpiresAt time.Time `json:"expires_at,omitempty"`
13 receiver, err := bcr.accounts.CreateReceiver(nil, ins.AccountInfo, ins.ExpiresAt)
15 return resWrapper(nil, err)
18 return resWrapper(*receiver)
21 func (bcr *BlockchainReactor) createAccountAddress(ctx context.Context, ins struct {
22 AccountInfo string `json:"account_info"`
23 ExpiresAt time.Time `json:"expires_at"`
25 receiver, err := bcr.accounts.CreateAddressReceiver(ctx, ins.AccountInfo, ins.ExpiresAt)
27 return resWrapper(nil, err)
29 return resWrapper(receiver)