func (c *RPC) setAccountSequence(seq uint64) error {
    c.accountMutex.Lock()
    defer c.accountMutex.Unlock()
    if c.acc == nil {
        return fmt.Errorf("c.acc should not be nil. use GetAccount first")